7

I'd like to have a ActiveRecord implementation in Java and before crafting my own, I'd like to know if there is an open source implementation of it.

I am aware of other successful java OR maping tools like Hibernate, Castor, etc... and that is not what i want, i want a ActiveRecord like in RoR:

Anyone?

7 Answers 7

9

I released this ActiveJDBC project: http://javalite.io/activejdbc

This is an implementation of ActiveRecord in Java

2

After "Googling" for a answer I've found the project arjava. It implements the Active Record pattern kind of similar to the Ruby way.

0
2

Hibernate is an ORM framework in Java and based on JPA specifications. JPA (Java Persistent API) internally implements ActiveRecord Pattern at number of places. But overall JPA is based on bit complex pattern called as DataMapper.

You can refer to this Active Record Pattern paper for comparison between Rails ActiveRecord and Hibernate

1
  • I know Hibernate, that is why I stated that it wasn't what I wanted, I want a real ActiveRecord implementation Feb 14, 2009 at 15:28
1

I discover the scooter framework which is based on AR, with built-in Ajax functions and pure Java and Jsp and code generator, it's wonderful of simplicity and efficacity !!

0

You could also consider using ActiveRecord-JDBC running on JRuby: http://wiki.jruby.org/wiki/ActiveRecord-JDBC

I haven't done that myself, but I have had great success in using ActiveRecord's Migrations to manage schema migrations in a Hibernate based application.

0

Check out ActiveObjects, a more Rails-esque ActiveRecord then the other mappers: https://activeobjects.dev.java.net/

0

There is a nice implementation in the play framework using JPA. Maybe it can be used solo...

Not the answer you're looking for? Browse other questions tagged or ask your own question.