wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes DiscriminatorColumn neither getting created or populated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "DiscriminatorColumn neither getting created or populated" Watch "DiscriminatorColumn neither getting created or populated" New topic
Author

DiscriminatorColumn neither getting created or populated

Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
Hi
I have 2 entities, 'Principal' and 'Resource'. 'Principal' implements resource and has a 'Joined' inheritance strategy with resource. 'Resource' entity has a DiscriminatorColumn called 'RESOURCE_TYPE' while the 'Principal' entity has a discriminator value of 'PRINCIPAL'. Now the problem that I am facing is that the discriminator column is neither getting created not populated in the 'Resource' table when I create a 'Principal'. I am using jboss-5 with Hibernate as the persistence provider. Below is the source code.





I would really appreciate if you could help me out.


Thanks and Regards
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
https://hibernate.onjira.com/browse/HHH-6911

You're stuck with using single table strategy if you want the discriminator column.
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
E Armitage wrote:https://hibernate.onjira.com/browse/HHH-6911

You're stuck with using single table strategy if you want the discriminator column.


Thanks for sharing the information!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DiscriminatorColumn neither getting created or populated