Hi Rajesh,
If you don't mind could you be a little bit clear on your answer?

Murthy A Suryanarayana
GE Financial Assurance
LTC - OPS2000 Project
------------------------------------------------------------------------
-------------------
Day     : (415) 492 7834
Dial-Com        :  8 *    277 7834
Fax     : (415) 492 7699
mailto  : [EMAIL PROTECTED]



-----Original Message-----
From: Rajesh Balu [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 02, 2000 10:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Life cycle of beans(Session and entity)


Hello,

If ur table has composite primary keys, you need to implement the hashCode()
method of ur primary key class to return a well-distributed integer
depending on
the values of the member variable which constitute the primary key.
Orielly's
EJB gives some idea on how to design the method. It says u can use the
String
class' hashCode() method. u can create a String which contains the
concatenated
values of the member variables and  u can return the result of the
hashCode()
method of the resulting String.
I hope this information could be useful. Thanks.


"Murthy, A (CAP, GEFA, Contractor)" wrote:

> How do we create or design entity beans if the tables have composite
primary
> keys?
>

===========================================================================
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".

===========================================================================
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