Some corrections / suggestions: > It also offers functionality > that isn't offered in OpenJPA (such as an IsDirty method)
OpenJPAEntityManager.isDirty(Object) is probably what you're looking for, possibly in combination with OpenJPAPersistence.getEntityManager(Object). > the CASCADE options are smarter in Hibernate. I'm guessing that you're referring to their orphan-delete option; you might want to try the OpenJPA @Dependent / @ElementDependent / @KeyDependent annotations. They've got slightly different semantics (in particular, around severing a relation to a dependent object and then assigning that object to another dependent field later in the same transaction), but will probably do what you're looking for. -Patrick On Wed, Feb 20, 2008 at 6:08 AM, Marc LaPierre <[EMAIL PROTECTED]> wrote: > Although not an in-depth report: > > I've used Hibernate, NHibernate, and OpenJPA. I found the Hibernates to > be easier to use and less prone to errors. It also offers functionality > that isn't offered in OpenJPA (such as an IsDirty method) and the > CASCADE options are smarter in Hibernate. Also the portability to > NHibernate makes it that much easier if you develop onm multiple > platforms. > > Personally I only use OpenJPA when I must (i.e., when it's been decreed > or when maintaining an existing project). > > - Marc > > > > -----Original Message----- > From: Rick Hightower [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 20, 2008 1:18 AM > To: [email protected] > Subject: Why would I choose OpenJPA over Hibernate? > > http://java.dzone.com/news/hibernate-best-choice > Has anyone done a comparison of Hibernate versus OpenJPA that compares > ease-of-use, caching, tool support, legacy integration, etc.? Perhaps > such an internal report was used to decide which ORM tool to pick. If > so, what were the results? > > http://java.dzone.com/news/hibernate-best-choice > > --------------------------------------------------------------------- > This transmission (including any attachments) may contain confidential > information, privileged material (including material protected by the > solicitor-client or other applicable privileges), or constitute non-public > information. Any use of this information by anyone other than the intended > recipient is prohibited. If you have received this transmission in error, > please immediately reply to the sender and delete this information from your > system. Use, dissemination, distribution, or reproduction of this > transmission by unintended recipients is not authorized and may be unlawful. > -- Patrick Linskey 202 669 5907
