You can direct your query to the weblogic news group also. You will
definitely get some satisfactory ans.



-----Original Message-----
From: An interest list for Sun Java Center J2EE Pattern Catalog
[mailto:[EMAIL PROTECTED]]On Behalf Of Pankaj
Sent: Friday, December 14, 2001 11:37 AM
To: [EMAIL PROTECTED]
Subject: Re: Primary Key Case Sensitiveness??


Hello Deepak,
Thanks for your response.
But, still my problem is not solved. I said I am using CMP Entity Bean in
BEA Weblogic and I don't know where to write 'where' clause???
I think we need not to write any query for it. Can you suggest any other
way???

Convey my thanks to Mr.Ramamanohar also.

Thanks and Regards,
Pankaj.

----- Original Message -----
From: Jaikumar, Deepak Kumar (Cognizant) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 14, 2001 11:17 AM
Subject: Re: Primary Key Case Sensitiveness??


> My friend (Mr.Ramamanohar) just suggested this -
> Have a where clause which negates the comparision by converting the field
to
> be queried and the value being queried to the same case .
>
> Hope it answers ur query .
> Have a nice day ,
> Deepak.
>
>         -----Original Message-----
>         From:   Pankaj [SMTP:[EMAIL PROTECTED]]
>         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.
>
>
>
>

====================================================================
Getting Started:
 http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Community Web Site:
 http://java.sun.com
List Archive:
 http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
 email "signoff J2EEPATTERNS-INTEREST" to [EMAIL PROTECTED]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to