[ajug-members] Hibernate/XMLBeans or any other alternatives?

Harpal Gujral hgujral at gmail.com
Tue Nov 7 09:28:27 EST 2006


Amit,

If you want to work with XML and Hibernate, you might want to try and skip
the step to create POJOs / DTOs if possible and directly parse the XML with
DOM4J while using Hibernate APIs to persist data.

Here's an article that might help...

http://www.devx.com/Java/Article/27896/0/page/2<https://webmail-am.ssaglobal.com/exchweb/bin/redir.asp?URL=http://www.devx.com/Java/Article/27896/0/page/2>

Harpal


On 11/2/06, amit sharma <asharma_atl at yahoo.com> wrote:
>
> Hello all,
>
> I just wanted a general opinion on XML-to-database persistence
> methodologies. We have a set of persistence APIs that has been built using
> the normal DAO/DTO pattern. The incoming data is always in the XML format,
> and we use Apache XMLBeans objects as the DTOs. We are planning to re-write
> the APIs using Hibernate to get rid of plenty of dirty JDBC code, and from
> the various posts out there, it appears as if Hibernate cannot use XMLBeans
> as its data beans? Wanted to check what alternatives others out there are
> using instead. I looked at HyperJAXB2 (https://hyperjaxb2.dev.java.net),
> but ran into several issues (like OutOfMemory and then size of methods being
> too large leading to a failure in compilation so far) trying to just
> generate the beans for my schema (the schema is fairly large). I would
> appreciate any feedback.
>
> Thanks
> -Amit
>
> ------------------------------
> Want to start your own business? Learn how on Yahoo! Small Business.<http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index>
>
>
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20061107/adff0295/attachment.html 


More information about the ajug-members mailing list