This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What are those niche areas where you need CMP?

 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I remember running into such posts..

Say we have 2 architectures,

CMP, CMR behind a session facade
Hibernate behind a session facade.

What is it that CMP/CMR architecture provides for that hibernate cannot / vice-a-versa. What are those niche (whatever that means) applications.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What is it that CMP/CMR architecture provides for that hibernate cannot

IHMO - nothing. CMP does have all the advantages (and disadvantages) of EJBs, but then so does Session Facade with a proprietory ORM behind it. However, Hibernate with a Session Facade however does have advantages over CMP e.g.: EJBQL it too limited to be of any real use, Entity Beans are not very portable being tied into a particular container, they are not Serializable so require DTOs, the n+1 problem, they reqire a one-to-one mapping to a DB entity which results in either a bad ER model or some very peculiar Objects, they requires a container, plus many other well reported problems.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic