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 ?
|