-->
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.  [ 5 posts ] 
Author Message
 Post subject: Problem with <key/>
PostPosted: Thu Jul 21, 2005 10:01 am 
Newbie

Joined: Thu Jul 21, 2005 9:56 am
Posts: 3
Hibernate version: 3.0.5

when I try to type "property-ref" in <key/> hibernate say:
"Attribute "property-ref" must be declared for element type "key"

please help me.


Top
 Profile  
 
 Post subject: Re: Problem with <key/>
PostPosted: Thu Jul 21, 2005 10:14 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
pablo_vgg wrote:
Hibernate version: 3.0.5

when I try to type "property-ref" in <key/> hibernate say:
"Attribute "property-ref" must be declared for element type "key"

please help me.


Please show your mapping file(s) and the full stacktrace of the exception.


Top
 Profile  
 
 Post subject: Re: Problem with <key/>
PostPosted: Thu Jul 21, 2005 10:16 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
pablo_vgg wrote:
Hibernate version: 3.0.5

when I try to type "property-ref" in <key/> hibernate say:
"Attribute "property-ref" must be declared for element type "key"

please help me.


Is your DTD correct ? Make sure your mapping file has to the H3 DTD and not the H2 DTD.


Top
 Profile  
 
 Post subject: Problem with <key/>
PostPosted: Thu Jul 21, 2005 10:40 am 
Newbie

Joined: Thu Jul 21, 2005 9:56 am
Posts: 3
Thanks for the help, you are right, it was the DTD version


Top
 Profile  
 
 Post subject: Re: Problem with <key/>
PostPosted: Thu Jul 21, 2005 10:56 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
pablo_vgg wrote:
Thanks for the help, you are right, it was the DTD version


Glad I could help. Now you can help me by rating my response as helpful. ;-)


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