-->
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: Reverse Engineer prob w/ ASA 9
PostPosted: Tue Mar 27, 2007 11:08 am 
Newbie

Joined: Tue Mar 27, 2007 10:45 am
Posts: 5
Hibernate version: 3.2.2ga

Full stack trace of any exception that occurs: org.hibernate.cfg.JDBCBinderException: Duplicate names found for primarykey. Existing name: GroupID JDBC name: SpotID on table org.hibernate.mapping.Table(test.TESTING.SpotGroup)

Name and version of the database you are using: SQLAnywhere 9.0.2.3342

We have a very simple bidirectional many-to-many relationship defined as follows:
Code:
create table Spot (SpotID integer not null default autoincrement primary key);
create table SpotGroup (SpotID integer not null, GroupID integer not null, primary key (SpotID, GroupID));
create table Group (GroupID integer not null default autoincrement primary key);

alter table SpotGroup
   add foreign key FK_SPOTGROUP_REFERENCE_SPOT (SpotID)
      references Spot (SpotID)
      on update restrict
      on delete restrict;

alter table SpotGroup
   add foreign key FK_SPOTGROUP_REFERENCE_GROUP (GroupID)
      references Group (GroupID)
      on update restrict
      on delete restrict;


When we run hbm2hbmxml, we get the JDBCBinderException above. Is this a configuration issue on our side or a restriction of the reverse engineering toolset?


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.