-->
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: generate XDoclet markup for hbm2java-Middlegen-Hibernate-r3
PostPosted: Tue Nov 11, 2003 3:19 pm 
Beginner
Beginner

Joined: Sun Sep 07, 2003 9:04 am
Posts: 48
I am experiencing the following problem.
<hibernate
destination="${build.gen-src.dir}"
package="${name}.hibernate"
genXDocletTags="false"
genIntergratedCompositeKeys="false"
/>
if you set

genXDocletTags="true"
genIntergratedCompositeKeys="true"

E get weblogic parse error.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 11, 2003 6:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I assume you mean that one (or more) of the class mappings are not parsing correctly for hibernate. Yes this could be the case even with the mapping being valid. There are two possibilities.
1) You are using hibernate 2.1 features and not using hibernate 2.1. This can occur in some of the one to one mappings and some other places. It is minor but there. or
2) The Xdoclet stuff required some changes to the DTD to validate correctly. Your options are;
a) Get the latest DTD from CVS and use it
b) Use Ant to generate the mappings twice, eg, first time round the mappings include XDoclet then hbm2java them. Once complete then generate without the XDoclet markup for persistence operations.
c) Upgrade to the lastest 2.1 beta of Hibernate.

If you have explored the above and still having problems then please isolate the mapping and include it and your environment and submit the details.

BTW: Why did you enable both options. You can choose to set one or the other depending on what you are after.


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.