I am looking for a Java implementationation of the ActiveRecord pattern which is built on top of Hibernate.
In .Net there is a open source project Castle Windsor ActiveRecord which implements the ActiveRecord pattern on top of NHibernate.
I'm looking for something like this, except sitting on top of the NHiberate persistence frameowork for Java.
Hibernate provides a mechanism for Object-Relational Mapping (ORM); it's an ORM framework. If you look at the description of Data Mapper pattern, it's pretty much the same as the concept of ORM.
The core difference between Rails ActiveRecord and Hibernate is the architectural patterns the two are based off of. Rails, obviously, is using the ActiveRecord pattern, where as Hibernate uses the Data Mapper/Identity Map/Unit of Work patterns.
ActiveRecord is a Ruby on Rails' ORM layer, roughly comparable to Hibernate in Java. ActiveRecord is based on conventions rather than configuration, so it is easier to work with than Hibernate. It really shines when it comes to simplifying the basic operations for creating, reading, updating, and deleting data.
I released a project called ActiveJDBC: http://javalite.io/. This is what you are looking for
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With