-->
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: session.save(Object obj, Serializable id)
PostPosted: Thu May 18, 2006 8:26 am 
Newbie

Joined: Tue Mar 21, 2006 11:05 am
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.1


the Session.save(Object, Serializable) is not part of the API anymore.... is there a replacement or do i need to fall back on org.hibernate.classic.Session (where it's still there but deprecated) ?


i have a case where i use hibernate to move some data around (migration) which already has a PK (which must not change during migration). after migration i want to use the same mapping files so i do not want to change to "assigned" generator.


thanks for your help

pascal


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 9:39 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
session.replicate copies entire objects and the identifiers

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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.