constructor « Update « JPA Q&A





1. Why does JPA require a no-arg constructor for domain objects?    stackoverflow.com

Why does JPA require a no-arg constructor for domain objects ? I am using eclipselink and just got this exception during deployment.

Exception [EclipseLink-63] (Eclipse Persistence Services-1.1.0.r3639-SNAPSHOT): 
org.eclipse.persistence.exceptions.DescriptorException

Exception Description: The instance creation method ...

2. In hibernate, is it possible to persist an object in the constructor?    stackoverflow.com

So, the way I typically persist an object is to call entityManager.persist(object). Is there a way to persist an object in its own constructor, so I don't have to create ...

4. Constructor in Hibernate persistent class.    forum.hibernate.org