targetEntity

12 views
Skip to first unread message

richar...@taskize.co.uk

unread,
Aug 13, 2015, 7:02:45 AM8/13/15
to Sculptor Generator
Hi - I have a Type that can have a number of different subtypes.

All of these are mapped with DISCRIMINATORs etc.

PSide extends Side
CSide extends Side

B has a OneToMany with CSide

But I am getting a org.hibernate.WrongClassException as when it tries to load CSide it also tries to load PSide.

In this instance you would normally instruct Hibernate what the targetEntity is. 

Is this possible in Sculptor. 

Torsten Juergeleit

unread,
Aug 13, 2015, 8:49:50 AM8/13/15
to Sculptor Generator
How did you use the keywords discriminator[Value|Type|Column] (as shown in the last inheritance example) for Side, PSide and CSide?

/Torsten
Reply all
Reply to author
Forward
0 new messages