Re: [xml-dev] MarkMail: now archiving xml-dev

From
John Snelson <>
To
Andrew Welch <>
Date
2007-11-28T12:51:32Z
ID
<>
Thread
Re: [xml-dev] MarkMail: now archiving xml-dev
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