Andrew Welch wrote:
> You're right - check out JPA, using say Hibernate as the implementation.
>
> Just annotate your pojos and it automagically takes care of
> persistence without needing a single line of SQL - it really is that
> good.
>
> http://www.hibernate.org/hib_docs/annotations/reference/en/html/entity.html
>
> I think it's amazing, and I could imagine the same annotation approach
> working well for persisting your objects to XML too.
However I would argue that if Hibernate fulfills your needs, you never
needed a SQL database in the first place - what you needed was ACID
persistence. Why not just use something like Berkeley DB JE, which
doesn't have the overhead of a query language at all - and is
significantly faster because of it.
John
--
John Snelson, Oracle Corporation
Berkeley DB XML: http://www.oracle.com/database/berkeley-db/xml
XQilla: http://xqilla.sourceforge.net