-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: union-subclass with discriminator -help required
PostPosted: Fri May 28, 2010 6:43 am 
Newbie

Joined: Fri May 28, 2010 6:32 am
Posts: 1
Hi,

I have a scenario as follows.

Class A - No table (used to create id, and some common fields)

Class B - Union subclass of class A

Class C - Sub class of class B.

Class B can have many sub classes. How do i specify a discriminator?
This is what i tried.

1) Added the discriminator in Class A , but it didn't set the discriminator value in database. All other columns defined in Class A got persisted.
2) Tried adding discriminator in Class B , but hibernate didn't parse the xml.

Kindly help me resolve this.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.