how to insert records in two tables through one entity(BMP)

Discussions

EJB design: how to insert records in two tables through one entity(BMP)

  1. hai friends,

    i want to insert records in two tables through one entity.
    we want to pass the parameters of create as the fields of the table. now do we need to two create method or one.
    how many findByPrimaryKey,load,store,remove methods to be written . please explain what is the program logic to do this. we are in urgent need of this.

    with regards
    k.ramakrishna
  2. Everything is the same as any other BMP bean, one finder, one ejbLoad, one ejbCreate etc. Just you're SQL you enter uses a join to query the data, and inserts into two tables.

    Dave Wolf
    Internet Applications Division
    Sybase