aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate serializable to/from XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate serializable to/from XML" Watch "Hibernate serializable to/from XML" New topic
Author

Hibernate serializable to/from XML

Wilberto Montoya
Greenhorn

Joined: Jun 04, 2004
Posts: 19
I'm looking for an API for serialize Hibernate Objects to/from XML. I tried HiperJAXB but is a little hard to understand for my. Now Im looking XStream works fine but now I have some doubts about Forgering-keys and CLOB Manage. (How I can do that?) Anyone have some experience with this Api or know another API?

thank you

Wilberto
Rickard Sundin
Greenhorn

Joined: Mar 10, 2003
Posts: 16
Have you tried XMLBeans (http://xmlbeans.apache.org/)?
/Rickard
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
I think that 1stly you should describe the problem, the goal and then I guess some guy will suggest something viable. There are lots of frameworks for XML-Object mapping, but as I always say it is more important to discover exactly which one is best suited to you.

./pope


blog - InfoQ.com
Wilberto Montoya
Greenhorn

Joined: Jun 04, 2004
Posts: 19
Well the problem is "easy" I'm peruvian citizen and Internet is very slow in some places inside my country, I have one server in Lima (Peruvian's Capital) with Oracle 9i, in the past many internet solutions where desingned thinking in one big server in Lima but this solution didn't work fine (bandWidth problem).
Now I'm designing one "distributed" solution I still havien one Big server in Lima (database server) and many small servers (Web servers) in the others cities. I use Hibernate to mapping the records, serialize the objects to XML and send the information (by request) with WebServices to the small server the people "work" with Hibernate's objects and send back to the server ( webServices again). and update the Database.
That is te reason I need one very quick Api to serialize to/from XML.

Any Idea? thank You.

Wilberto.
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
If you are speaking about bandwidth problems I do not think that xml is the good answer :-(. You could not send real Serializable objects? (just the POJOs decoupled from the session).

./pope
Wilberto Montoya
Greenhorn

Joined: Jun 04, 2004
Posts: 19
Yes! POJO's would be a good answer, (I think Hibernate's objects are POJO too). Even I was thinking Pojo and JAX-RPC Webservices, but there are another problem: Security. I need Data encription, and digital signing (public/private key) :-(. I not sure about this with Pojo and RPC, but I can do it with SOAP Message ;-).

Thank you.

Wilberto
pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
if bandwith is limited then webservices/xml are not the perfect solution.
have a look at hessian i never used it but it is supposed to be verry fast.

pascal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate serializable to/from XML