Yes u can . U have write a query in ejb ql to which does the DB search for the condition
-----Original Message----- From: Vikram Naik [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 3:42 PM To: [EMAIL PROTECTED] Subject: Reg CMR EJB 2.0 Hello All, Suppose I have two database tables A and B. Scehma of A NAME (pk) VALUE Scehma of B ID (pk) NAME ( Foreign Key from A) DETAIL1 DETAIL2 A and B have master detail relationship . ( like order and lineitem ) so we create a CMP Entity A which has One to Many relationship with Entity B. Now Entity A can have methods exposed like .. Collection getEntityB() My Queries are :- 1) I wanted to add another argumented method so that i can have a specific row selected from Entity B where value of DETAIL1 can compared along with the foreign key. getEntityB( "value of detail 1" ) Can be this done ... , if yes please guide . Thanks Vikram =========================================================================== 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".
