-->
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: Mapping d'une relation entre 2 entités avec 1 obj interméd
PostPosted: Wed Oct 11, 2006 11:44 am 
Newbie

Joined: Tue Oct 10, 2006 10:36 am
Posts: 7
Bonjour,

Je n'arrive pas à mapper le cas suivant :

Code:
public Historique {
private Map<Date, Object>
}

public Client {
private Interger Id
private Historique<Date, Contrat>
}

public Contrat {
private Interger Id
}


Dans cet exemple, la classe Historique est une classe utilitaire qui n'a pas vocation à être persistée. Les classes Client et Contrat doivent l'être.

J'ai réussi à mapper un système presque semblable :

Code:
public Client {
private Interger Id
private Map<Date, Contrat>
}

public Contrat {
private Interger Id
}


Ce système fonctionne bien, mais je souhaiterais introduire cette fameuse classe Historique. Malheureusemen pour moi, je n'arrive pas à trouver le mapping adéquate, ni aucun pointeur vers une doc qui me permettrait d'avancer.

Si quelqu'un peut m'aider, il est le bienvenue.

Merci
dom


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.