javax.persistence.PersistenceException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services – 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [testJPAPU] failed. Internal Exception: Exception [EclipseLink-7298] (Eclipse Persistence Services – 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException Exception Description: The mapping [product] from the embedded ID class [class model.ProductItemPk] is an invalid mapping for this class. An embeddable class that is used with an embedded ID specification (attribute [pk] from the source [class model.ProductItem]) can only contain basic mappings. Either remove the non basic mapping or change the embedded ID specification on the source to be embedded. at org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:126) at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:133) at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:65) at javax.persistence.Persistence.createEntityManagerFactory(Unknown Source) at javax.persistence.Persistence.createEntityManagerFactory(Unknown Source) at utils.PersistanceUtilities.<init>(PersistanceUtilities.java:23)
    No Bugmate found.