Hibernate Books

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 Table has column that mustnot be null
PostPosted: Tue Jun 05, 2012 5:13 am 
Newbie

Joined: Tue May 29, 2012 4:20 am
Posts: 4
Hello,
I have the following problem. The mapping is
Code:
<bag name="Roles" table="ADMBENPRO" lazy="true">
        <key column="BENUTZERID"></key>
        <many-to-many class="Role" column="ROLLENID" not-found="ignore"></many-to-many>
</bag>

It is a many to many relation. The Problem is, that the Table ADMBENPRO has an additional column CustomerID which must not be null.
Ist there a possibility to map an additional column in NHibernate?


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.