ID « EJB « JPA Q&A





1. org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save()    stackoverflow.com

I got the above error though i have set the ID manually, Im not using auto generated key here. when i set the key and pass the object to

entityManager.persist(obj);
it gives the ...