As for your questions:
- lazy loading / selective saving?OJB definitely supports lazy loading, and it has some support for dynamic proxying -- from the docs, it appears that you don't have to write your own proxy classes for collections, and it has support for Java 1.3 and later dynamic proxying, and you can just write your own proxy class. I haven't gotten too deep with this...
- what if an object is spread over several tables in a legacy
database?
I don't have a legacy database; I'm making mine up right now -- but one of the things I'm most impressed with is the way that 1:n and m:n relationships seem to just work. For example, I need a query that returns orders which have line items that match certain criteria -- the query is totally intuitive (which is good, because documentation is one place where OJB is sometimes lacking, although this has been improving a lot lately...)
One very cool feature which is relatively new is support for "anonymous" references -- you don't always have to go adding identifier properties to your objects in cases where they can be implicitly identified. (This is hard to summarize in a nutshell, but there's a whole "How To" on the OJB site about it...)
I suspect that Hibernate does most of these things too, or people wouldn't be so enthusiastic about it. Hibernate recently "joined" JBoss, which means it's likely to keep developing. But if you are concerned about licenses, the Apache license (OJB) is less restrictive than the LGPL (Hibernate).
Joe
At 15:19 -0500 10/3/03, Sasha Borodin wrote:
Hibernate/iBATIS the bad: - not a standard spec (IF that's "bad" anyway) the good (awesome): - I love the "non-intrusive" nature of adding the persistence functionality; you don't have to modify your beans questions: - lazy loading / selective saving? - what if an object is spread over several tables in a legacy database?
If anyone's got anything to add, please do. I think this is a topic that itches the brains of many newbies watching the struts-user list. Thanks again.
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "We want beef in dessert if we can get it there."
-- Betty Hogan, Director of New Product Development, National Cattlemen's Beef Association
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

