--- Manish Syal <[EMAIL PROTECTED]> wrote:
> I have a customer entity which has 5-6 customer tables in database , sya
> one for general information and other linked with it
> I need to make a entity bean for this
> Shall I make one BMP which will load/insert/delete from these different
> table as required and this BMP will be mamaged bya session bean or
> I should have 5-6 CMP of different table which will be controlled by a
> session bean as in fascade pattern
>
> which approachis better???
>
CMP is more efficient than BMP.
Facade pattern abstracts the load/insert/update/delete activities well
and let the session bean do this!
However, since the tables are linked, the queries would get a bit
complicated as you would need constraint checks and CASCADEs.
That would be tradeoff that you will have to live with!
Thanks
EJT.
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".