• Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP beans - Update table  RSS feed

 
Mukti Furtado
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me how can we update table using CMP Entity bean
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In CMP Beans
first you will create the bean possibly passing all table values or just the primary key and later setting the Bean values using setters method.

ejbStore() method will get called by ejbServer whenever there is change in data in CMB bean with respect to its corresponding record in table.

You don't have to write any code for that in ejbStore().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!