-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Reverse engineering from xml file
PostPosted: Tue Jan 03, 2006 2:55 pm 
Newbie

Joined: Tue Jan 03, 2006 2:34 pm
Posts: 8
Is it possible to reverse xml files ?

I know hibernate allows reversion from a database schema to POJO (with HibernateTools and Eclipse plugin for ewample).
Can we do the same thing from xml files ?


tx for help.
Alex.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 03, 2006 5:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what kind of xml files ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 4:46 am 
Newbie

Joined: Tue Jan 03, 2006 2:34 pm
Posts: 8
In fact any xml file containing data.
For example :

Code:
<profil uri="user2@users.org">
   <base>
      <login>user2</login>
      <pseudo>u2</pseudo>
      <password>user2pwd</password>
      <inscrdate>2005-9-30</inscrdate>
      <jid>user2@users.org</jid>
      <mail>user2@users.org</mail>
   </base>
   <competence id="java">
                <level>0</level>
   </competence>
        <competence id="c++">
                <level>3</level>
   </competence>
</profil>


Do I have to write the mapping file manually, or is there any way to reverse this example xml data file (defining profiles) automatically (that's to say generate the xml mapping file and/or the POJO code)

I'm dealing with big xml data files (all with the same DTD). I take them as string and have to put them into a database (the schema is not defined yet)
So the easiest way would be to generate the xml mapping files from the xml data files and adapt them after that.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 8:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no - no reverse engineering from xml files....pretty hard and interesting computational problem if there are no DTD or similar for it yet btw. ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 05, 2006 7:03 am 
Newbie

Joined: Tue Jan 03, 2006 2:34 pm
Posts: 8
so that's not possible even if we have the DTD... :(

and yes I agree, this must hard (so interesting !) to do.
Do u know if this feature will be added in future ? Some contributors are working on it ?

tx for help !
Alex.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 05, 2006 7:10 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
nope - noone i know of.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.