[hibernate-dev] hbm2doc with inner-classes

Max Rydahl Andersen max.andersen at jboss.com
Mon Oct 30 10:16:31 EST 2006



..and you have the default_schema set to PUBLIC ?

This error should only occur if the database somehow is returning the same  
table name twice (e.g. reverse engineering multiple schemas)
/max

> On 30/10/06, Max Rydahl Andersen <max.andersen at jboss.com> wrote:
>> What errors do you see ?
>>
>> Parts of the testsuite runs best against HSQLDB with
>> hibernate.default_schema set to PUBLIC.
>
> Many of the tests fail with:
>
> Testcase: testVersion took 0.344 sec
> 	Caused an ERROR
> Duplicate class name 'Basic' generated for
> 'org.hibernate.mapping.Table(PUBLIC.BASIC)'. Same name where generated
> for 'org.hibernate.mapping.Table(PUBLIC.BASIC)'
> org.hibernate.cfg.JDBCBinderException: Duplicate class name 'Basic'
> generated for 'org.hibernate.mapping.Table(PUBLIC.BASIC)'. Same name
> where generated for 'org.hibernate.mapping.Table(PUBLIC.BASIC)'
> 	at  
> org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:168)
> 	at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:91)
> 	at  
> org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)
> 	at  
> org.hibernate.tool.JDBCMetaDataBinderTestCase.setUp(JDBCMetaDataBinderTestCase.java:137)
>
> Any ideas?  I'm running Branch_3_2 with no local modifications.
>
> Thanks,
>
> Mark



-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
max at hibernate.org
http://hibernate.org

JBoss a division of Red Hat
max.andersen at jboss.com



More information about the hibernate-dev mailing list