-->
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: Problems with Many-to-many
PostPosted: Sat Feb 17, 2007 11:58 am 
Newbie

Joined: Sat Feb 17, 2007 11:45 am
Posts: 1
Hello Gays

I'm using NHibernate 1.2 Beta and MySQL 5 - and have a problem. This is My mapping:

<list name="Products"
table="Purchases_Products"
lazy="false"
cascade="none"
inverse="true"
generic="true" >
<key column="PurchaseId"/>
<index column="Indexer" type="Int32" />
<many-to-many class="eShop.Model.Products.Product, Model" column="ProductId"/>
</list>

Saving executing normaly, but when I trying to Select Purchase, In DB the Purchase that I trying to resolve - Coping with updating all references to own id; I don't know why that cause...???

Can somebody help Me with that - Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 18, 2007 12:16 pm 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
Can you send the complete mapping file and the code between opening and closing the session (at least the rlevant calls).

Wolfgang


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.