-->
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: method saveOrUpdate() question
PostPosted: Mon May 22, 2006 6:09 pm 
Regular
Regular

Joined: Wed Feb 22, 2006 11:28 am
Posts: 65
Location: Santiago, Chile
Hello EveryBody:

I found a problem that i can not solve it, i hope everybody can helpme:

I have a Object that contains a "CompisteId".

Wu assume that object be called "ObjectX", and his CompiseteId is called like XId.

class ObjectX{
private Xid xid;
private String toUpdateOrSave;
}
class Xid{
private int id1;
private int id2;
private int id3;
public boolean equals(..){//all sentences correct, so i don`t write it}
public int hashcode(..){//all sentences correct, so i don`t write it}

}


Then, I get it from DataBase callin session.get(new Xid(1,2,3), ObjetX.class), I will get a ObjectX fine.

But when i call saveOrUpdate(objectX), it can`t "update", i really has seted to the attribute "toUpdateOrSave" a value "xxxxx"......

I don`t know why...

Can any one help me?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 22, 2006 7:16 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
You'll need to post your mapping for a diagnosis.

_________________
Code tags are your friend. Know them and use them.


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.