Hey Aaron Mulder wrote: > Well, readin a little further, others seem to have come to the > conclusion that your object is not fine, which the more I think about the > more I agree with. (Doesn't deserialization use a default constructor?) No, serialization would be fine. But there's quite a few other things that would be messed up. Each time you use the findByPrimaryKey method for example you would be creating a new id.. just for *finding* another entity.. > But in any case, how do others thing about using a comparison of > an object to its serialized and deserialized form instead of to a second > object? I guess it wouldn't catch situations like this, but it would be > the "most accurate" test of whether equal objects are .equals(). It might be that, yes. It's a very minor difference though. /Rickard -- Rickard �berg Email: [EMAIL PROTECTED] http://www.telkel.com http://www.jboss.org http://www.dreambean.com -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
- [jBoss-User] Real problems with primary key deployment Tim Squires
- Re: [jBoss-User] Real problems with primary key deplo... Rickard �berg
- Re: [jBoss-User] Real problems with primary key d... Juha-P Lindfors
- Re: [jBoss-User] Real problems with primary key deplo... Juha-P Lindfors
- Re: [jBoss-User] Real problems with primary key d... Rickard �berg
- Re: [jBoss-User] Real problems with primary key deplo... Aaron Mulder
- Re: [jBoss-User] Real problems with primary key d... Aaron Mulder
- Re: [jBoss-User] Real problems with primary k... Rickard �berg
- Re: [jBoss-User] Real problems with primary key d... Dan OConnor
- Re: [jBoss-User] Real problems with primary k... Rickard �berg
- Re: [jBoss-User] Real problems with prima... Dan OConnor
- Re: [jBoss-User] Real problems with ... Rickard �berg
- Re: [jBoss-User] Real problems w... Dan OConnor
- Re: [jBoss-User] Real problems with primary k... Aaron Mulder
- Re: [jBoss-User] Real problems with prima... Juha Lindfors
- Re: [jBoss-User] Real problems with primary key deplo... Rick Horowitz
- RE: [jBoss-User] Real problems with primary key deplo... Tim Squires
- RE: [jBoss-User] Real problems with primary key deplo... Jay Walters
