Prev: servlet/applet communication problem or Linux/Windows trouble?
Next: Better way to implement reverse mapping of custom enum ordinals?
From: maheshexp on 17 Dec 2009 20:33 I was wondering is there any existing ActiveRecord implemented for the mammoth programming language? With the Rails, ActiveRecord been made famous than any other implementation and why not for java?
From: Arved Sandstrom on 17 Dec 2009 21:33 maheshexp wrote: > I was wondering is there any existing ActiveRecord implemented for the > mammoth programming language? With the Rails, ActiveRecord been made > famous than any other implementation and why not for java? ActiveObjects (https://activeobjects.dev.java.net/) is one example. I don't know how active (excuse the pun) this implementation is. AHS
From: markspace on 17 Dec 2009 23:33 maheshexp wrote: > I was wondering is there any existing ActiveRecord implemented for the > mammoth programming language? With the Rails, ActiveRecord been made > famous than any other implementation and why not for java? I don't know much about ActiveRecord or Hibernate, but just reading the descriptions, I think that Hibernate may be Java's answer to ActiveRecord. <https://www.hibernate.org/>
From: Daniel Pitts on 18 Dec 2009 03:10 markspace wrote: > maheshexp wrote: >> I was wondering is there any existing ActiveRecord implemented for the >> mammoth programming language? With the Rails, ActiveRecord been made >> famous than any other implementation and why not for java? > > > I don't know much about ActiveRecord or Hibernate, but just reading the > descriptions, I think that Hibernate may be Java's answer to ActiveRecord. > > <https://www.hibernate.org/> I've used hibernate extensively. If you're doing simple mappings, it is great, but once you start getting more complicated, or need to do custom logic, it starts getting annoying. -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
From: Arved Sandstrom on 18 Dec 2009 08:41
markspace wrote: > maheshexp wrote: >> I was wondering is there any existing ActiveRecord implemented for the >> mammoth programming language? With the Rails, ActiveRecord been made >> famous than any other implementation and why not for java? > > > I don't know much about ActiveRecord or Hibernate, but just reading the > descriptions, I think that Hibernate may be Java's answer to ActiveRecord. > > <https://www.hibernate.org/> > Depends on what you mean by answer. JPA implementations like EclipseLink JPA and Hibernate JPA follow the Data Mapper pattern. Persistence operations are not handled by the domain objects but rather by another thing (or things), like the EntityManager. Whereas in the active record pattern the domain objects themselves are responsible for persistence operations. AHS |