Recent Posts
Archives

PostHeaderIcon ids for this class must be manually assigned before calling save()

Error:

javax.ejb.EJBException: EJB Exception: : org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save():

Fix: You must assign the primary-key (which is probably a composite-id) before saving the object.

Leave a Reply