Friday, 8 August 2008

About SimpleRecords

I recently started studying Ruby on Rails, and I was really impressed by its ActiveRecords component.

I am currently working as a J2EE developer, with all the horribly complex and intricate methods and patterns to access a database. When I first saw an active record-powered class I was deeply impressed. It was so totally different from the way I am used to think about Database access, that I thought I had to use it in my day-to-day work.

So I started searching for a Java implementation of this pattern, but it seems that at the moment there are very few options (activeobjects, jactiverecord, arjava, activemapper) and in addition none of the projects has released anything usable.

This pushed me into loking a bit deeper into the ActiveRecord pattern, and I found out it was not so difficult to create a basic implementation (no error handling, no table relationships...) of the pattern in Java. I then tried to insert this spagetti-code class into a branch of an actual project I'm working on, and up until now it's working quite well.

I want now to give this little experiment space to grow and dedicate to it some of my time, so that's the reasons behind the SourceForge project. On this blog I will post ideas, news, considerations arising from this project.

No comments: