Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 05:28
Anahata Technologies is currently offline Anahata TechnologiesFriend
Messages: 4
Registered: February 2015
Junior Member
I have an abstract @Entity with @Inheritance(strategy=TABLE_PERCLASS) called Booking.

Is it possible to have an @Entity 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( at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy( at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(
Previous Topic:Cache Coordination failure during merge operation
Next Topic:Moxy: support of substitution groups for schema generation
Goto Forum:

Current Time: Mon Mar 04 03:09:16 GMT 2024

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

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

Back to the top