File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes What are those niche areas where you need CMP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "What are those niche areas where you need CMP?" Watch "What are those niche areas where you need CMP?" New topic
Author

What are those niche areas where you need CMP?

Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
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

Joined: Apr 14, 2004
Posts: 10336


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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What are those niche areas where you need CMP?