-->
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.  [ 2 posts ] 
Author Message
 Post subject: Mapping : Interface and multiple implementations.
PostPosted: Mon Oct 16, 2006 4:13 am 
Beginner
Beginner

Joined: Fri Sep 16, 2005 7:51 am
Posts: 25
Hello there,

I have the following class hierarchy.

Image

As you can see, I have several implementing classes for the 'Targetable' Interface.
When I annotate my 'target' property (in Localisation class), I want to specify multiple implementing classes.

I believe it's possible with xml mapping ("It is perfectly acceptable for the named persistent class to be an interface. You would then declare implementing classes of that interface using the <subclass> element"), but with annotations, there is only a simple 'targetEntity' available.

How can I reference several targetEntities ???

Tnx in advance for your help,

sne.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 17, 2006 5:02 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you have to map the interface as the root entity. But I don' thing it works property right now in HAN

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.