File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Problem in Joined Inheritance Strategy, getting null value in parent Discriminator column Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Problem in Joined Inheritance Strategy, getting null value in parent Discriminator column " Watch "Problem in Joined Inheritance Strategy, getting null value in parent Discriminator column " New topic
Author

Problem in Joined Inheritance Strategy, getting null value in parent Discriminator column

Alpesh Rathod
Ranch Hand

Joined: Jan 06, 2009
Posts: 41
Hey guys actually in joined inheritance type I am not getting the value in the Discriminator column of parent class...

Suppose the discriminator column of parent class is "type"...and the value of that type in corresponding child classes are "A" and "B"...
Now when instance of child class is created then the corresponding value of the discriminator should get inserted in the parent table...but this is not the case which is happening with me ....the type column is inserted with "null" values.....cant get the case here...

Thanks,
Alps
Jitendra Chittoda
Greenhorn

Joined: Jul 21, 2012
Posts: 21

I am facing the same problem even with SINGLE_TABLE inheritance strategy.
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1671
    
    7

Jitendra,

You start new topics for new questions. The OP is trying to use a discriminator column with a strategy that does not use discriminators. Your problem is different. I suggest you start your own new topic and TellTheDetails. We need to at least see the relevant mappings with a clear description of YOUR problem.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in Joined Inheritance Strategy, getting null value in parent Discriminator column