-->
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: Incomplete metadata
PostPosted: Tue Nov 22, 2005 5:43 am 
Newbie

Joined: Tue Nov 22, 2005 5:29 am
Posts: 1
Hibernate version: 3.0.5 ; tools 3.1.0 beta1

Mapping documents: n/a

Code between sessionFactory.openSession() and session.close(): n/a

Full stack trace of any exception that occurs:
Error 2005-11-22 16:30:03.321 Problem while reading database schema
org.hibernate.cfg.JDBCBinderException: Duplicate names found for primarykey. Existing name: name JDBC name: type on table org.hibernate.mapping.Table(siteworx.dbo.EXCLUDEOBJECT)
at org.hibernate.cfg.reveng.JDBCReader.processPrimaryKey(JDBCReader.java:277)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:57)
at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$1.execute(Unknown Source)
at org.hibernate.console.execution.DefaultExecutionContext.execute(Unknown Source)
at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(Unknown Source)
at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(Unknown Source)
at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(Unknown Source)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(Unknown Source)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)



Name and version of the database you are using: Sybase Anywhere 6

When I create a session factory from within eclipse 3.1 I get the exception above and while my tables are displayed under the database branch, almost all of the tables have no column metadata.
Any clues appreciated

Regards
Mark


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 22, 2005 8:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
What JDBC driver and version etc?

JDBC meta data comes from the JDBC driver so this is the first place to look.


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.