Can I have @ManyToOne relationship to an abstract entity using table per class? [message #1607851] |
Mon, 09 February 2015 00:28 |
Eclipse User |
|
|
|
I have an abstract @Entity with @Inheritance(strategy=TABLE_PERCLASS) called Booking.
Is it possible to have an @Entity Payment.java with a @ManyToOne relationship to the abstract class?
I wasn't sure how the column mapping would go so i tried deploying using drop and create tables and Eclipselink gives a NPE at deployment time
Exception Description: Predeployment of PersistenceUnit [xotica-bms-pu] failed. Internal Exception: java.lang.NullPointerException at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:1954) at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1945) at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:322)
|
|
|
Powered by
FUDForum. Page generated in 0.02947 seconds