[jboss-user] [EJB 3.0] - entity question
Cybernd
do-not-reply at jboss.com
Tue Sep 12 09:44:03 EDT 2006
Hi,
Is it possible to use Interfaces for OneToOne relations?
For example (Pseudocode):
| Entity A implements MarkerInterface {}
| Entity B implements MarkerInterface {}
| Entity C {
| MarkerInterface something;
| }
|
I know that its possible to use Inheritance, but im unable to use the same BaseClass in A and B.
I just want to avoid this:
| Entity class C {
| A a;
| B b;
| }
|
Where its only allowed to set a or b instead.
thx for your help,
Bernhard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971009#3971009
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971009
More information about the jboss-user
mailing list