-->
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: alternative to instead-of-triggers?
PostPosted: Tue Oct 12, 2004 5:27 am 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
Hi,

i've read the blog from christian about using instead-of-trigger for creating history-data and versioning ...

Because it's not possible to change the database to add a version- or timestamp-column directly (other existing applications will use these tables, too and therefore no changes to the existing db-tables are allowed) i've tried to put the version-info into a seperate table ... so far so good.

But the IBM DB2/AS400 doesn't support "instead-of"-triggers :(

There're some possibilities for me, that i all don't really like:
1.) use "optimistic-lock='all'" which does not work since version 2.1.5. so i had to use version 2.1.4. But this can't be really the solution, because version 2.1.6 includes some bug-fixes and so on ...

2.) do the concurrency-handling by hand using e.g. the "Interceptor-callback-methods" and checking perhaps a version-id in a child-object. (additional select-statement required). Alternatively i can check the versionid before insert- or update-operations ... but i still need a seperate select-statement ...

3.) don't use concurrency-handling ;)


Does anybody has a better idea? At the moment i'm thinking of using version 2.) ...

thx!
carsten


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 12, 2004 8:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
You could use Hibernate3 and take advantage of its stored procedure support.


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.