-->
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: Re: Problem with session.merge(Object)
PostPosted: Tue May 24, 2005 7:22 am 
Newbie

Joined: Mon Apr 04, 2005 6:01 am
Posts: 9
Location: INDIA
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.0.3

Name and version of the database you are using:
Oracle 9i
The generated SQL (show_sql=true):

Hi

I am using Hibernate for quite a few months. Can anybody tell me about session.merge(Object);

I have tested in a table with 4 columns.

As for as i understood session.merge() issue an select statement and then an update statement.

I used this session.merge() to merge in an table, but actually it didn't merge but instead it has updated the value.

For eg) consider table as Item
Column : Item_id Item_name Item_value item_price
values

1) 1 computer 5 5000
2) 2 system 2 4000


In this case if i set the item_id and item_name and leave the other and call the session.merge() the result is

Column : Item_id Item_name Item_value item_price
values

1) 1 computer 0 0
2) 2 system 2 4000


This result should come only for session.update(). Is there any problem with session.merge()

I want to use this in my application. I am just giving u an example.


Waiting for your reply

Regards
Ramnath


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2005 4:20 am 
Newbie

Joined: Mon Apr 04, 2005 6:01 am
Posts: 9
Location: INDIA
Hi

Can anyone from answer me the Question?

Is it a bug?

waiting for a reply from HIBERNATE TEAM[b]

This method will be very useful for issuing an select and then an update Query when HIBERNATE TEAM

Regards
RamnathN

_________________
Regards
RamnathN


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.