cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass values for compound primary keys for updating the record in db.

Former Member
0 Kudos

i have a entity bean in my ejb with two primary keys to it...eg. roleid,rolename...

when iam retriving the record i use only one primary key ...so again to modify and update he same record which i retrived is a pbm..

i cannot set the values for the compoundpk,,,

but i can do the update for the bean with single primary key..

i need to know how to pass the values/parameters for the coumpound primary key in my update method...

thanx in advance...

Arjun.G

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I istantiated a object for the pk class and assign the values for the primary key fields...

Arjun.G