-->
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: many-to-many with extra (mandatory) attribute in bridgetable
PostPosted: Thu Nov 04, 2004 4:30 am 
Newbie

Joined: Thu Nov 04, 2004 4:07 am
Posts: 2
Location: Amsterdam
Hello All,

I have a problem:
In our datamodel all the many to many relations are normally modelled, but to be in compliance with some European law all data must be historical retrievable. So the bridge tables are also versioned and have 3 extra mandatory date fields. We are using sets with many-to-many relations specified:
<set name="types" inverse="false" lazy="true" table="SDM_VW_PTE_IN_APT">
<key column="APT_ID" />
<many-to-many column="PTE_ID" class="our.package.Type" />
</set>
A fetch works fine, but an insert or update blows because the database (oracle 9.2.0.5.0) does not accept a null inside one of those 3 columns.
Any ideas how to tackle this challenge would be much appreciated.
TIA Jeroen.


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.