Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 22, 2008 at 06:55 AM

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

    Arjun.G

    Add comment
    10|10000 characters needed characters exceeded