Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Can I have @ManyToOne relationship to an abstract entity using table per class?(@ManyToOne relationship to an abstract entity using table per class?)
Can I have @ManyToOne relationship to an abstract entity using table per class? [message #1607851] Mon, 09 February 2015 00:28
Eclipse UserFriend
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 Smile 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)
Previous Topic:Cache Coordination failure during merge operation
Next Topic:Moxy: support of substitution groups for schema generation
Goto Forum:
  


Current Time: Sun Apr 20 07:11:25 EDT 2025

Powered by FUDForum. Page generated in 0.02947 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top