Bonjour,
comment donner deux valeurs differentes à un identifiant selon une condition
dans le fichier mapping hibernate sachant cet identifiant et en etat de sequence exemple:
<class name="PretVO" table="PPCE_PRET_PCE" schema="DBM01" polymorphism="implicit" >
<id name="id" type="java.lang.Integer" access="property">
<meta attribute="field-description">
Identifiant du prêt
</meta>
<column name="N_PRET" />
<generator class="sequence">
<param name="sequence">DBM01.CPTPPCE</param>
</generator>
</id>
<discriminator ></discriminator>
<property name="idObjetPret" type="java.lang.Short" not-null="false" column="COBPRT" />
<property name="intituleTermeEcheance" type="java.lang.String" length="10" column="IMOPMV" />
<property name="idTypeAmortissement" type="java.lang.Short" column="CTYAMO" />
<property name="idProduit" type="java.lang.Short" not-null="true" column="CPROCO" />
<property name="versionFormuleFinancement" type="java.lang.Integer" not-null="true" column="CSQWEB" />
<property name="idModePaiement" type="java.lang.Short" column="CMPAIE" />
<property name="idOrganisme" type="java.lang.Integer" not-null="true" column="NUMERA" />
<property name="idGroupGestion" type="java.lang.Short" not-null="true" column="CGGEST" />
Partager