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!
|