Update on lightweight Java persistence libraries:
I would suggest guests from the following projects:
- persist at
http://code.google.com/p/persist/
- EoD SQL at
https://eodsql.dev.java.net/
- Ebean at
http://www.avaje.org/
All 3 projects are currently active but need a little help in
marketing.
EoD SQL could help where your need/want absolute control/visibility of
SQL.
Persist is a bare bones ORM.
EBean is a more powerful ORM with auto fetch optimization.
I gave another look at various libraries because of my requirements:
- must work with multiple datasources at once
- must work in simple groovy scripts with the least code/setup/
configuration
- must work in simple command line app
- must work in thick desktop app (JWS included)
- must work in web frameworks like GWT, ZK, Wicket
- low/zero configuration (especially no xml and even minimal
annotations)
- low/zero runtime initialization code
- support "sessionless" API (if tool supports child navigation, e.g.
company.address.city)
In essense, I'm use to building reuseable libraries that contain
domain/business logic for use in various situations (scripts, command
line apps, desktop apps, web apps, system tests, etc) but found that
recent enterprise web frameworks (e.g. jsf, hibernate, spring)
resulted in lots of bloat and a coupling to the IT/container
perspective.