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.  [ 3 posts ] 
Author Message
 Post subject: The class has no identifier property
PostPosted: Mon Dec 11, 2006 5:19 pm 
Newbie

Joined: Tue Oct 17, 2006 7:58 am
Posts: 6
Bonjour,

J'ai une fichier hibernate qui comprend une clé composite.

Lorque j'essaye de sauver le record qui comprend les 2 clés nécessaires à la création du record, j'ai le message d'erreur suivant qui apparaît.

The class has no identifier property

Or, j'ai ajouté les deux propriétés dans le fichier TbReaInvestmnt.hbm.xml qui pointe vers les 2 clés primaires des tables parents.

J'ai également fait dans Eclipse un clique droit : Synchronize hibernate files (overwrite).

Voici le message d'erreur plus complet.


The class has no identifier property: eu.cec.immogest.realestate.TbReaInvestmnt; nested exception is net.sf.hibernate.HibernateException: The class has no identifier property: eu.cec.immogest.realestate.TbReaInvestmnt
net.sf.hibernate.HibernateException: The class has no identifier property: eu.cec.immogest.realestate.TbReaInvestmnt

On dirait que mes modifications ne sont pas vues, parce que quand j'enlève ces propriétés, le message reste le même.

Quelqu'un peut-il m'aider à voir clair?

Merci.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 2:45 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Ouaip, ben déjà montre nous ton fichier hbm.xml, sinon on va pas pouvoir faire bcp plus que de suppositions...

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject: Contenu du fichier xml
PostPosted: Mon Dec 18, 2006 4:49 am 
Newbie

Joined: Tue Oct 17, 2006 7:58 am
Posts: 6
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping package="eu.cec.immogest.realestate">
<class
name="TbReaInvestmnt"
table="TB_REA_INVESTMNT">
<composite-id class="TbReaInvestmnt">
<key-many-to-one
name="realestate"
class="TbRealEstate"
column="REAL_ESTATE_ID"
/>
<key-many-to-one
name="investment"
class="TbInvestment"
column="INVESTMENT_ID"
/>
</composite-id>

<property
name="RealestateId"
column="REAL_ESTATE_ID"
type="integer"
not-null="true"
insert="false"
update="false"
length="22"/>
<property
name="InvestmentId"
column="INVESTMENT_ID"
type="integer"
not-null="true"
insert="false"
update="false"
length="22"/>



</class>
</hibernate-mapping>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.