Joined: Mon Dec 01, 2003 9:16 am Posts: 6 Location: Paris
|
my Error :
net.sf.hibernate.MappingException: duplicate import: Teengpsi
my table : Teengpsi
file Teengpsi.hbm.xml is declared once in the hibernate.cfg.xml
where could come from the problem ? as Teengpsi.hbm.xml is correctly written ...
file Teengpsi.hbm.xml ::
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<class
name="fr.bdpme.fcp.business.bean.Teengpsi"
table="TEENGPSI"
>
<composite-id name="comp_id" class="fr.bdpme.fcp.business.bean.TeengpsiPK">
<key-property name="nlcref" column="CTREGF" type="java.lang.Integer"/>
<key-property name="nmarce" column="NMARCE" type="java.lang.Integer"/>
<key-property name="ctregf" column="NLCREF" type="java.lang.Integer"/>
</composite-id>
<discriminator/>
<property
name="ctneps"
type="java.lang.Short"
column="CTNEPS"
not-null="true"
length="5"
/>
<property
name="cgacep"
type="java.lang.Short"
column="CGACEP"
length="5"
/>
<property
name="dsieps"
type="java.sql.Date"
column="DSIEPS"
length="10"
/>
<property
name="numeps"
type="java.lang.Short"
column="NUMEPS"
length="5"
/>
<property
name="dopmai"
type="java.sql.Date"
column="DOPMAI"
length="10"
/>
<property
name="sdemaj"
type="java.lang.String"
column="SDEMAJ"
length="26"
/>
<property
name="udemaj"
type="java.lang.String"
column="UDEMAJ"
length="8"
/>
</class>
</hibernate-mapping>
_________________ Regards,
Mehdi
|
|