-->
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 d'une class contenant une subclass
PostPosted: Tue Sep 26, 2006 2:56 am 
Newbie

Joined: Thu Oct 20, 2005 10:02 am
Posts: 3
Location: Belgium, Brussel
Bonjour,

J'ai une Class Enfant contenue dans une Class Parent.
Jusque là, très simple ;-)

Dans le fichier de mapping de la Class Parent, j'aimerais faire référence à un attribut de la Class Enfant.

Comment puis-je faire ?

Code:
<hibernate-mapping package="com.cwsoft">
   <class name="Parent" table="TAD01">
      <id name="entity" type="string" column="CODETT">
         <generator class="assigned"/>
      </id>
      <property name="enfant.entityType" column="TYPETT" type="string" />
   </class>
</hibernate-mapping>


Merci d'avance pour votre aide...

_________________
bgOnline


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 26, 2006 3:03 am 
Newbie

Joined: Thu Oct 20, 2005 10:02 am
Posts: 3
Location: Belgium, Brussel
Petit supplément d'information : j'aimerais faire ce mapping sans association si possible...

_________________
bgOnline


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.