-->
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: Middlegen-Hibernate-r3, run example error
PostPosted: Thu Nov 27, 2003 11:03 pm 
Newbie

Joined: Fri Sep 19, 2003 3:43 am
Posts: 1
when i change
genXDocletTags="true"
genIntergratedCompositeKeys="true"

and use hbm2java to generate java source file, got some error
[hbm2java] 0 [main] ERROR hbm2java.CodeGenerator - Error parsing XML: file:/D:/java/Tools/Middlegen-Hibernate-r3/build/gen-src/airline/hibernate/Reservation.hbm.xml(47)
[hbm2java] org.xml.sax.SAXParseException: The content of element type "composite-id" must match "(key-property|key-many-to-one)+".

if someone could help me?
thanx.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 28, 2003 4:09 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Two things:
1) The options you have indicated do not both need to be set. If you only want Xdoclet markup then genXDocletTags="true" will do. The other option was a request to generate composite key class as an integrated form. This is not recommended.

2) The problem you have is the hibernate DTD. You will need 2.1b6 DTD (does not matter which Hibernate) for it parse correctly.


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.