-->
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: Mapper 1 classe avec 2 tables
PostPosted: Thu May 26, 2011 4:32 am 
Newbie

Joined: Thu May 26, 2011 4:26 am
Posts: 1
Bonjour,

j'aurais voulu savoir si il était possible de mapper plusieurs table avec une seule classe Java par exemple

classe.java
string code
string nom
int age


code provient de la table entity
nom et age proviennent de la table person

est il possible d'avoir toutes ses informations avec un seul mapping ou dois modifier la structure de ma classe pour avoir quelque chose comme ca

classe.java --> mappe sur person
classeId codeId
string nom
int age


classeId --> mappe sur entity
string code

j'espère avoir été clair mais j'en suis pas sur.

Merci.


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.