-->
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: Problem understanding Method replace() in CompositeUserType
PostPosted: Wed Mar 02, 2005 5:09 am 
Newbie

Joined: Wed Mar 02, 2005 4:57 am
Posts: 1
Hibernate version: 3.0 rc1

In the abstract class CompositeUserType there is a new abstract method

<code>public Object replace(Object arg0, Object arg1, SessionImplementor arg2,
Object arg3) throws HibernateException</code>.<br> The javadoc doesn't help me in understanding how I have to change my CompositeUserTypes from Hibernate 2.1.x. Can anyone explain to me what I have to do in this method?

Thanks


Top
 Profile  
 
 Post subject: CompositeUserType.replace(...) undocumented
PostPosted: Tue Apr 19, 2005 12:22 pm 
Beginner
Beginner

Joined: Wed Feb 25, 2004 6:23 pm
Posts: 39
I'm in the same boat here, as CompositeUserType.replace(...) is undocumented. Does anyone see a problem with just implementing it like so?
Code:
  public Object replace(Object original, Object target, SessionImplementor session, Object owner) throws HibernateException
  {
    throw new UnsupportedOperationException("Not supported.");
  }

I'm going to do this for now until the purpose of this method is made clear.


- Andy


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.