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: Help XDoclet2, Hibernate3 With Maven2 + SQL Server 2005
PostPosted: Mon Dec 03, 2007 4:35 pm 
Newbie

Joined: Mon Dec 03, 2007 4:25 pm
Posts: 2
Hi All,

I'm using XDoclet2 to generate hbm(Hibernate3) files with Maven2 for SQL Server 2005 and I'm getting the following error when trying to use

mvn hibernate3:hbm2hbmxml

Error:
org.hibernate.cfg.JDBCBinderException: Duplicate class name 'CheckConstraints' generated for 'org.hibernate.mapping.Table(ORDERS.sys.check_constraints)'. Same name where generated for 'org.hibernate.mapping.Table(ORDERS.sys.check_constraints)'

I appreciate your earliest reply. Thanks in advance

-Boss (Gundu-Boss)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 4:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if you are using xdoclets to generate mapping files why are you using hbm2hbmxml too ?

about the error it looks like you have not limited the reveng to only look at your schemas tables.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 9:39 am 
Newbie

Joined: Mon Dec 03, 2007 4:25 pm
Posts: 2
I'm new to Hibernate3 and Maven2. I want to automate the generation of hbm files. PS suggest what should I do. PS gimme some examples.

-Boss(Gundu-Boss)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 9:58 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
start by reading the docs for the tools you are using...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 5:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
After which choose between
1) Generate HBMs from XDoclet or
2) Generate HBMs a part of the reveng process or
3) Hand write HBMs or
4) Do not use HBM and use Annotations.


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.