-->
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.  [ 3 posts ] 
Author Message
 Post subject: Regarding 'unsaved-value' in <id Element
PostPosted: Sat Apr 22, 2006 2:46 am 
Newbie

Joined: Tue Apr 18, 2006 10:56 am
Posts: 4
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:hibernate-3.1

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Hi....
Any body pls tel me what is use of 'unsaved-value', as far i know this will used to distinguish between persistent Object and detached Object, but how can we use it in real time. plz giv any senario if u found any...

_________________
Sreedhar P


Top
 Profile  
 
 Post subject: Re: Regarding 'unsaved-value' in <id Element
PostPosted: Sun Apr 23, 2006 11:47 am 
Senior
Senior

Joined: Mon Aug 22, 2005 5:45 am
Posts: 146
sree_pasunoori wrote:
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:hibernate-3.1

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Hi....
Any body pls tel me what is use of 'unsaved-value', as far i know this will used to distinguish between persistent Object and detached Object, but how can we use it in real time. plz giv any senario if u found any...


it's to specify an identifier property value that indicates that an instance is newly instantiated (unsaved), distinguishing it from detached instances that were saved or loaded in a previous session.

@see http://www.hibernate.org/hib_docs/v3/re ... aration-id

hope that helps.

_________________
Please don't forget to give credit, if my posting helped to solve your problem.


Top
 Profile  
 
 Post subject: Re: Regarding 'unsaved-value' in <id Element
PostPosted: Mon Apr 24, 2006 12:30 am 
Newbie

Joined: Tue Apr 18, 2006 10:56 am
Posts: 4
axismundi wrote:
sree_pasunoori wrote:
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:hibernate-3.1

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Hi....
Any body pls tel me what is use of 'unsaved-value', as far i know this will used to distinguish between persistent Object and detached Object, but how can we use it in real time. plz giv any senario if u found any...


it's to specify an identifier property value that indicates that an instance is newly instantiated (unsaved), distinguishing it from detached instances that were saved or loaded in a previous session.

@see http://www.hibernate.org/hib_docs/v3/re ... aration-id

hope that helps.





Hi axismundi ...

I seen the the Couple of Lines U wrote For my Post, It seems to give little info regarding the aobve, But
I need a Realtime senario. However thnx for u r resonse.Pls if u have any example , which deals with the
this give me with description I am giving cridit to this.

-->

_________________
Sreedhar P


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.