Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can CMP and BMP be combined?

 
Lavan Adgaonkar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it acceptable in J2EE applications, to have a combination of CMP (to actually persist data) and BMP (only in terms of using DAOs for search) for the same entity?

My question stems from the case that, I do not want to use Entity Bean Finders (instead use DAOs) to do a search to present a list of flights to the user for browsing. However when the itinerary details are persisted, is it valid to opt for CMP mechanism for persistence of data? Or is it a norm that once you go for DAOs (say only for search), you have to go with BMP/DAO combination only, for persisting the data as well?


Any comments?

Thanks.
Lavan.
 
Duren Lee
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lavan Adgaonkar:
Is it acceptable in J2EE applications, to have a combination of CMP (to actually persist data) and BMP (only in terms of using DAOs for search) for the same entity?

My question stems from the case that, I do not want to use Entity Bean Finders (instead use DAOs) to do a search to present a list of flights to the user for browsing. However when the itinerary details are persisted, is it valid to opt for CMP mechanism for persistence of data? Or is it a norm that once you go for DAOs (say only for search), you have to go with BMP/DAO combination only, for persisting the data as well?


Any comments?

Thanks.
Lavan.


Lavan,
Yr design is acceptable:Fast-Lane Reader(DAO) is used to search and BMP/DAO for persisting the data.

duren
 
Lavan Adgaonkar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Duren,

Thanks for your response.. I guess, I was not clear with my question. My question was can I go for DAO for search and CMP for data persistence..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic