-->
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: problem with joined subclasses loading
PostPosted: Tue Sep 27, 2005 8:15 am 
Beginner
Beginner

Joined: Mon Sep 22, 2003 5:18 am
Posts: 28
I have base table Account that maps to ACCOUNT table.
I have to joined subclasses Subscriber that mapps to SUBSCRIBER table and Publisher that maps to PUBLISHER table. Both Subscriber and Publisher are in one-to-one relationship with Account.

By business, it is possible that Subscrbier can be Publisher at once, so that the same id can be both in SUBSCRIBER and PUBLISHER table.

I have problem with loading the certain type of object using session.load method - it doesn't allow to load 2 instances of account by one Id but of different type, since only first is concidered.

How i can resolve this issue ,so that for the same id i can load Subscriber and Publisher ?


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.