What is the difference between Container managed persistent and Bean managed persistent entity bean ?

The major difference between CMP and BMP Entity Beans is managing persistence of data through container in case of CMP and programmatically in BMP.
Generally, you should use CMP unless you're forced to use BMP due to limitations of the mapping tools. In case of mapping some relatively complex data models.
CMP is better than BMP as far as performance is concerned as in case of CMP through OR mapping optimization of transaction process is taken care off by container in the best possible manner. While in case of BMPs you can optimize your queries and improve performance over the generalized container-managed heuristics.

0 comments :

 

Disclaimer
Interview Questions On Java,Java EE Copyright © 2018. Reads: best tracker