About composite entity beans:
I have opted to use BMP + DAO.
So, my doubt is: do I have to create an BMP + DAO + VO for each entity?
I was thinking to apply the composite entity
pattern.
For example, there are 3 entities: Customer, Address and CreditCard.
Do I have to define a BMP for all these 3?
I decided to define a BMP only for Customer.
Because I'll never directly access Address nor CreditCard. I'll always access Address and CreditCard through Customer.
So, if I have a single CustomerBMP communicating with AddressDAO and CreditCardDAO isn't it enough?
Then, CustomerBMP can receive and return AddressVO and CreditCardVO whenever a customer needs to read/update his address or credit card. I implement get/set methods in CustomerBMP that use all these 3 VOs and DAOs.
What do you think about this?
<b>Luciano Queiroz</b><br/>
Brazil<br/>
<i>SCJP 1.2, SCWCD, IBM 141, IBM 483, SCJP 1.4, IBM 484, IBM 287, SCBCD, SCEA, SCJP 5.0, SCJP 6.0, SCWCD 5</i>