Hi, At 16:55 15.8.2000 -0400, you wrote: >Object's default implementations of hashCode and equals compare >the object instance (i.e. the "memory location") without regard to >semantics (i.e. the meaning of the object). In other words, >person1pk will not always equal person1pk, if these are different >instances of the same key. What I was trying to get at was that I don't see a way the container can determine that the semantics of the said two methods are meaningful in order to refuse deployment. We can determine that the contract is correct, that equals() is reflexive, symmetric and transitive and within a reasonable doubt even consistent. But the Object's default implementation fulfills this contract as well -- and it's not considered "suitable". So my question still remains, how do we define a suitable implementation for these methods in order to reject the non-suitable ones? -- Juha
- [jBoss-Dev] SPEEEEEEDDDD!!!! complex PK hashCode and equals marc fleury
- Re: [jBoss-Dev] SPEEEEEEDDDD!!!! complex PK hashCode a... Dan OConnor
- RE: [jBoss-Dev] SPEEEEEEDDDD!!!! complex PK hashCo... marc fleury
- RE: [jBoss-Dev] SPEEEEEEDDDD!!!! complex PK ha... marc fleury
- Re: [jBoss-Dev] SPEEEEEEDDDD!!!! complex P... Rickard �berg
- RE: [jBoss-Dev] SPEEEEEEDDDD!!!! comp... marc fleury
- Re: [jBoss-Dev] SPEEEEEEDDDD!!!! ... Rickard �berg
- RE: [jBoss-Dev] SPEEEEEEDDDD!!... marc fleury
- Re: [jBoss-Dev] SPEEEEEEDDDD!!!! complex PK hashCo... Juha Lindfors
- Re: [jBoss-Dev] SPEEEEEEDDDD!!!! complex PK ha... Dan OConnor
- Re: [jBoss-Dev] SPEEEEEEDDDD!!!! complex P... Juha Lindfors
- Re: [jBoss-Dev] SPEEEEEEDDDD!!!! comp... Dan OConnor
- RE: [jBoss-Dev] SPEEEEEEDDDD!!!! ... marc fleury
- [jBoss-Dev] SPEEEEEEDDDD!!!! complex P... Justin Forder
- Re: [jBoss-Dev] SPEEEEEEDDDD!!!! complex PK hashCode a... Rickard �berg
- RE: [jBoss-Dev] SPEEEEEEDDDD!!!! complex PK hashCo... marc fleury
- Re: [jBoss-Dev] SPEEEEEEDDDD!!!! complex PK ha... Rickard �berg
- RE: [jBoss-Dev] SPEEEEEEDDDD!!!! complex P... marc fleury
- Re: [jBoss-Dev] SPEEEEEEDDDD!!!! comp... Rickard �berg
- RE: [jBoss-Dev] SPEEEEEEDDDD!!!! ... marc fleury
- Re: [jBoss-Dev] SPEEEEEEDDDD!!... Rickard �berg
