-->
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: Creatint new object (additional update)
PostPosted: Tue Aug 09, 2005 4:32 am 
Newbie

Joined: Sun Aug 07, 2005 12:09 pm
Posts: 2
Location: Poland, Poznan
Hi

Thanks to this forum now I know how to connect two objects connected in DB with relation.

Now I have another problem :-(

I tried to create one of these objects. I've created object in C# and tried to insert it into DB. Insert went smoothly but the update appeared. NHibernate was trying to update another object related to the one I've created.

Example:

table1
(
id
name
)

table2
(
id
name
)

table3
(
id_from_table1
id_from_table2
)

I've created table3 object and NHibernate issued an insert. Then he tried to update table1 object in db :-(

I think that there is probably some setting that I am missing in my mappings.

What is this setting? What value should I set for it?

If its necessary I can later (when I'll be at home) post my mappings.

_________________
best regards


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.