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".
- Life cycle of beans(Session and entity) Samuel Abraham
- Re: Life cycle of beans(Session an... Avi Kivity
- Re: Life cycle of beans(Session an... Vivek Singh
- Re: Life cycle of beans(Sessio... Rajesh Balu
- Re: Life cycle of beans(Session an... Vivek Singh
- Re: Security in EJB Atul Ghanekar
- Re: Security in EJB Rajan Kashyap
- Re: Life cycle of beans(Session an... Vivek Singh
- Re: Life cycle of beans(Sessio... Dave Wolf
- Re: Life cycle of beans(Session an... Murthy, A (CAP, GEFA, Contractor)
- Re: Life cycle of beans(Sessio... Rajesh Balu
- Re: Life cycle of beans(Sessio... Sonia
- Re: Life cycle of beans(Session an... Murthy, A (CAP, GEFA, Contractor)
- Re: Life cycle of beans(Sessio... Dave Wolf
- Re: Life cycle of beans(Sessio... Cedric Beust
- Re: Life cycle of beans(Session an... Ashwani Kalra
- Re: Life cycle of beans(Session an... Vivek Singh
- Re: Life cycle of beans(Sessio... Saurabh Sahai
- Re: Life cycle of beans(Session an... Murthy, A (CAP, GEFA, Contractor)
- Re: Life cycle of beans(Sessio... Dave Wolf
- Re: Life cycle of beans(Sessio... Dave Wolf
