-->
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: Please Help - problems saving specialized objects
PostPosted: Wed Nov 10, 2004 2:38 pm 
Newbie

Joined: Wed Nov 10, 2004 2:20 pm
Posts: 2
Hibernate version: 2
Hibernate Synchronizer: 2.1
Eclipse: 3
Name and version of the database you are using: Postgresql 7.3

Hi folks!
I'm facing a problem when I save a hibernate object on postgre using the dao generated by hibernate synchronizer plugin.

I have a table (Table A) on the data base and it's primary key (and also foreign key) is the primary key of another table (Table B).

The hibernate synchronizer created all vos and daos based in the data base. For the described case, it created a vo of Table A that is an specialization of the vo of Table B.

Then, when I save the Table B vo, an row is inserted on table B, and when I save the Table A vo, it inserts an row in table A and another on Table B.

The problem is that I don't want to create another row in Table B, I want to reference the existent one.

Someone knows how to proceed?
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.