Hibernate Job Interview Questions

Answer  
# 1 " Hibernate uses the version property, if there is one.
" If not uses the identifier value. No identifier value means a new object. This does work only for Hibernate managed surrogate keys. Does not work for natural keys and assigned (i.e. not managed by Hibernate) surrogate keys.
" Write your own strategy with Interceptor.isUnsaved().
Answer Submitted by: Admin
Is This Answer Correct?    2 Yes 2 No
Submit New Question Place Your Answer

Previous Interview QuestionNext Interview Question
What are the pros and cons of detached objects?What is the difference between the session.get() method and the session.load() method?

Top: How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?
Hibernate Job Interview Question


Top Frequently Asked Hibernate Question
Frequently Asked Hibernate Job Interview Question


Top Frequently opened Java Programing Job Interview categories
Most popular Java Programing Job Interview categories

Comments About How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?

Share your valuable opinions, ideas and suggestions about How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?
While placing your comment your email address is required but won't be published any where else; Personal information will be kept confidential; we do not sell or release our respective visitors private information.
  1. Webmaster 23rd of May 2012

    Webmaster Said

    Tell us what you feel about How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?
    All comments will be published after review. No login or registration is required to post a comment on How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects? We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
    So start sharing your thoughts regarding How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?
    Thank you.

Leave a Comment

Leave a Comment
  1.  Enter This Verification Code  Regenerate Verification Code  



Your reply will be added to the comment above (Below any other replies to this comment) -

Top Comments About: How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?
Comments on How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?

 
Top of Link batk to How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?
Link batk to How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?