-->
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.  [ 1 post ] 
Author Message
 Post subject: org.hibernate.cfg.JDBCBinderException: Duplicate class name
PostPosted: Tue Oct 23, 2012 11:53 am 
Newbie

Joined: Tue Oct 23, 2012 11:42 am
Posts: 1
Hello,

When using JPA tools to Generate Entities from Tables from Eclipse Juno x64 from a standard Java EE Web Project using Java 7_7, I get the following error:

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

I am connecting to SQLServer 2008 R2.

Question:
Having used the .NET Entity Framework in past, it is very easy to connect and just select the tables you want to use. This does not seem to be the case here. You connect and the generate function seems to want to generate everything including the dbo and sys schema even if I just type in dbo. Can I choose only the tables I want or do you have to get them all and then delete what you don't want? Well I could do that if I can get past the error above.

It would seem if I could choose only the tables I wanted to generate it would solve the error I getting.

Any thoughts on this would be greatly appreciated.

Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.