-->
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: Possible to map a one-to-one reference to an interface?
PostPosted: Tue Jun 29, 2004 10:34 am 
Newbie

Joined: Fri Jun 25, 2004 9:05 pm
Posts: 13
Say I have an inteface IA.

Say I also have two different classes, B and C. The only commonality between B and C is that they inherit from the same base-class, and they both implement interface IA -- also B and C are mapped into different tables.

It is the idea of seperate objects that work great on their own, but implement a common interface to be able to be grouped together (for instance, different objects that might be sellable in a catalog).

Is it possible to map an object that has a one-to-one reference to the IA interface, and be able to put in either a B or C, and have it work?


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.