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: PRB : COLLECTION ME RENVOIE adresses et non les DONNEES
PostPosted: Wed May 17, 2006 6:32 am 
Newbie

Joined: Thu Apr 20, 2006 7:55 am
Posts: 3
Bonjour ,
dANS UNE JTable j'affiche la liste des budgets.
Entre autre j'affiche la collonne période

Je ne comprends pas pourqoui hibernate affiche
[color=red]
com.altair.mapping.Mois@276

de budgetPeriode(colonne du budget) et non la donnée ?????[/color]



Mapping de la classe Budget :

<?xml version="1.0" encoding='UTF-8'?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >


<hibernate-mapping package="com.altair.mapping">

<class name="Budget" table="BUDGET">
<id name="budgetId" column="BUDGET_ID" type="long">
<generator class="sequence">
<param name="sequence">SEQ_BUDGET</param>
</generator>
</id>
<version name="version" column="VERSION" />


<property name="budgetNom" column="BUDGET_NOM" type="string" not-null="true" />
<property name="budgetDatecreation" column="BUDGET_DATECREATION" type="date" not-null="true" />
<property name="budgetCommentaires" column="BUDGET_COMMENTAIRES" type="string" />
<property name="budgetMultiregion" column="BUDGET_MULTIREGION" type="boolean" not-null="true" />



<many-to-one name="projet" column="BUDGET_PROJET" class="Projet" />
<many-to-one name="budgetRegion" column="BUDGET_REGION" property-ref="code" not-null="true" class="Region" />

<many-to-one name="budgetPeriode" column="BUDGET_PERIODE" property-ref="moisFormat" not-null="true" class="Mois" />


</class>

</hibernate-mapping>




Mapping de la class Mois :

<hibernate-mapping package="com.altair.mapping">

<class name="Mois" table="MOIS">
<id name="moisId" column="MOIS_ID" type="long">
<generator class="sequence">
<param name="sequence">SEQ_MOIS</param>
</generator>
</id>
<version name="version" column="VERSION" />

<property name="moisNumero" column="MOIS_NUMERO" type="int" not-null="true" />
<property name="moisNom" column="MOIS_NOM" type="string" not-null="true" />
<property name="moisAnnee" column="MOIS_ANNEE" type="int" not-null="true" />
<property name="moisQuarter" column="MOIS_QUARTER" type="string" not-null="true" />

<property name="moisFormat" column="MOIS_FORMAT" type="string" not-null="true" />



<set name="budgetSet" inverse="true" cascade="all-delete-orphan" >
<key column="BUDGET_PERIODE" property-ref="moisFormat" />
<one-to-many class="Budget"/>
</set>




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.