hi folks , just to say , that you have found a bug. may be because my set from my table have no index but anyway , I Lost 1 day , to find this fucking bug.
<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Generated 14 f?vr. 2010 03:40:11 by Hibernate Tools 3.2.4.GA --> <hibernate-mapping> <class name="monpack.Tcontact" table="tcontact" catalog="mabase1"> <composite-id name="id" class="monpack.TcontactId"> <key-property name="clecontact" type="double"> <column name="clecontact" precision="22" scale="0" /> </key-property> <key-property name="nom" type="string"> <column name="nom" length="65535" /> </key-property> <key-property name="prenom" type="string"> <column name="prenom" length="65535" /> </key-property> </composite-id> </class> </hibernate-mapping>
Exception in thread "main" org.hibernate.MappingException: Unknown entity: monpack.TcontactId
<class name="monpack.Tcontact" table="tcontact" catalog="mabase1"> <composite-id name="id" class="monpack.TcontactId">
my correction to pass threw this bug
<class name="monpack.TcontactId" table="tcontact" catalog="mabase1"> <composite-id name="id" class="monpack.TcontactId">
the map file is generated by hibernate and java source , too. So I think , it's a bug from generating.
thanx
|