-->
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.  [ 1 post ] 
Author Message
 Post subject: bug report access mapping file xml
PostPosted: Sat Feb 13, 2010 11:55 pm 
Newbie

Joined: Fri Feb 12, 2010 4:39 am
Posts: 1
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


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

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.