aspose file tools*
The moose likes Object Relational Mapping and the fly likes What is the drawback of using OR tools? 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 is the drawback of using OR tools?" Watch "What is the drawback of using OR tools?" New topic
Author

What is the drawback of using OR tools?

Peter Lee
Greenhorn

Joined: Jun 25, 2003
Posts: 24
HI All,

I am new to OR tools and not very experienced in EJB and would like to ask some questions.

What is the drawback of using OR tools instead of CMP?
Is OR tools really save a lot of programming works compared with EJB?
Do you think it is a trend to use OR tools for persistence?

Thanks.

Peter
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Originally posted by Peter Lee:
What is the drawback of using OR tools instead of CMP?
Beats me. An O/R persistent class can't act as a distributed component the way an entity bean can, but given that it's best practice to access entity beans only through a session facade anyway, that's hardly a drawback. Many OR tools can distribute with the best of them, if that's your thing, with distributed transactional caches and so on.

Is OR tools really save a lot of programming works compared with EJB? Do you think it is a trend to use OR tools for persistence?
Yes, and yes. A transparent O/R mapper means not only less programming effort, it also means an easier programming model, support for object orientation, in many cases dispensing with value structs^H^H^H^H^H value objects (aka data transfer objects) and other ugly kludges^H^H^H^H^H J2EE patterns such as Fast Lane Reader, and is much easier to test.

- Peter
[ August 21, 2004: Message edited by: Peter den Haan ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the drawback of using OR tools?
 
Similar Threads
Hibernate
web application drawbacks
Software install to run EJB
why java doesnot support pointer concept?
IDE for EJB