-->
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.  [ 2 posts ] 
Author Message
 Post subject: Duplicate Error
PostPosted: Mon Jan 05, 2004 1:35 pm 
Newbie

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 1:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This is most likely a dtd violation, please check the log before the error message.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.