News for hackers. Stuff that matters.
Re:Bringing Ruby's ActiveRecord to Java by kpanghmc on Monday March 28, 2011 @06:20PM (#2380354)
I've used NHibernate (which is the .NET port of Hibernate) and Rails ActiveRecord.

The biggest difference to me is that Rails ActiveRecord encourages you to work from the database first. That is, you define your database tables and columns which are then used to generate your classes. In contrast, NHibernate (and I'm assuming Hibernate as well) encourages you to design your classes first and worry about persistence later.

There are merits to both approaches. In general, I'd say that Rails ActiveRecord is much easier to use and get started with while NHibernate allows for more flexibility in your domain model.

Re:Bringing Ruby's ActiveRecord to Java by jarin on Monday March 28, 2011 @06:58PM (#2380501)
If you prefer the flexibility of the class-first model, it might be better to use something like Mongoid (with MongoDB) instead.
Re:Bringing Ruby's ActiveRecord to Java by kpanghmc on Monday March 28, 2011 @07:49PM (#2380656)
Or DataMapper if you want to keep using a relational database as your persistence medium.
Re:Bringing Ruby's ActiveRecord to Java by xentronium on Monday March 28, 2011 @10:45PM (#2381127)
Btw, datamapper has a mongo adapter too, so it isn't restricted to RDBMS.