-->
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: secondary unique key and reordered operations
PostPosted: Tue Jun 21, 2005 6:32 am 
Regular
Regular

Joined: Thu Dec 11, 2003 4:14 pm
Posts: 86
Location: Hibernate 3 + annotations, Oracle 9i, PostgreSQL 8.0, Java 1.5.0
Hibernate version:
3.0.5

I run into the problem where a database table (legacy system) defines a secondary unique key on a table which hibernate do not take into account during "reordering" of its database operations.

Mainly I delete all records and reimport new records out of a csv file.

Maybe there are the same records in this file maybe not.

Using hibernate "in its correct manner" would force me to write a complex diff tool to archive this. So delete and reimport is much easier.

Is there a chance to define a mapping so hibernate deletes the record before inserting the new one?


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.