|
The
method you have overriden is for the client to manipulate and maintain. For eg.
you are storing them as a key value pair.It is not used by by finder method. See
other options like EJB Ql etc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cheers Ashwani Kalra Sr. Mem. Dev. Staff Aithent Technologies India http://www.geocities.com/ashwani_kalra/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original
Message-----
From: An interest list for Sun Java Center J2EE Pattern Catalog [mailto:[EMAIL PROTECTED]]On Behalf Of Pankaj Sent: Thursday, December 13, 2001 8:22 PM To: [EMAIL PROTECTED] Subject: Primary Key Case Sensitiveness?? Hello,
I have an Entity bean(CMP) for a user account in my J2EE application. User Id is the primary key for the same. I want to make user id case in-sensitive which is case sensitive at present. I wrote equals method to return true after comparing the 2 user ids by ignoring the case. But, I am not being able to get the desired result!!! I am using findByPrimaryKey() to
find the record. It should return same record for 'xxx' or 'XXX' value of
userId.
***************************
public boolean equals(Object
obj)
{ if(userId.equalsIgnoreCase(((GTUserPK)obj).getUserId())) return true; else return false; } *****************************
Can anybodu tell me how to do this??? Thanks and Regards, Pankaj. |
- Re: Primary Key Case Sensitiveness?? Ashwani Kalra
- Re: Primary Key Case Sensitiveness?? Ashwani Kalra
