how to update/delete a record in entity bean (CMP)

Discussions

EJB design: how to update/delete a record in entity bean (CMP)

  1. hello freinds,

    how to update/delete a record in database through entity bean(CMP). whether we have to write the business methods or methods in home interface.

    waiting for reply...

    with regards
    k.ramakrishna
  2. hi,
    u need not write anything if u uses CMP.

    try to use ur get/set methods (on remote reference) to update the fields in ur entity bean.
    then the containar will automatically updates it into the database.

    to insert a recode use ejbcreate.

    to delete a record u can use ejbremove.

    thanks
    subbu