-->
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: Session.save(Object, Serializable)... removed?
PostPosted: Tue Dec 20, 2005 11:13 am 
Newbie

Joined: Thu Nov 03, 2005 10:27 am
Posts: 2
I was using Hibernate 3.1beta3, and I just upgraded to 3.1, and much to my surprise, the Session interface is missing a save signature - Session.save(Object, Serializable) to be precise.

I checked the changelogs and didn't see any mention of it being removed (or deprecated).

I'm sure I missed something, but I was just checking. Thanks!

~Andy


Top
 Profile  
 
 Post subject: Bring back save(Object, Serializable)!
PostPosted: Mon Dec 26, 2005 7:05 pm 
Newbie

Joined: Mon Dec 26, 2005 7:02 pm
Posts: 3
I noticed this as well. We'd like to see this come back if anybody out there is listening.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 26, 2005 11:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
It has been moved to org.hibernate.classic.Session where all deprecated Session methodsgo to live out the reest of their short futile lives.

Note that these methods are only used/needed in the situations where an entity does not contain its own identifier as a property. That (mis)feature will be removed (currently deprecated) which *is* noted in the change log.

Additionally note that SessionFactory always returns an org.hibernate.classic.Session, which extends org.hibernate.Session, adding the deprecated functionality. So the methods are there in whaat you get back from a SessionFactory.


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.