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 .
|
|