-->
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: Problem with interfaces mapping!
PostPosted: Mon Feb 06, 2006 6:54 am 
Newbie

Joined: Mon Feb 06, 2006 5:30 am
Posts: 1
Hi, all

I'll try to describe an extract of my class diagram:

Class Person: implements Subject and Contactable (that is, a person is a generic subject and is contactable - by mail, telephone, etc.)

Class Company: implements Contactable (that is, a company can have a telephone number an fax number etc)

Interface Subject.

Interface Contactable.

Class Contact: this is the implementation of a generic contact: an e-mail address, a telephone number, etc. This class references an object type Contactable.

I've mapped (in my hbm files) Person as a joined-subclass that extends Subject (Company is mapped in the same way too) and all works fine but, haw can i map Person so that it implements Contactable? I've to use joined-class? If yes how? If it is't the right way, how can i map it all?
That is, the final question is: How can i map, in hibernate, a class that implements two interfaces?

Many thanks
Giovanni


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 06, 2006 8:24 am 
Regular
Regular

Joined: Tue Nov 29, 2005 12:31 pm
Posts: 75
Hi,

Check http://www.hibernate.org/hib_docs/refer ... guide.html (see Table 15.6. Supported meta tags).

You should use meta tags "implements" and maybe "class-code".


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.