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

Reply via email to