This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Is there some kind of tool to convert xml to persistence ejb entity been? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Is there some kind of tool to convert xml to persistence ejb entity been?" Watch "Is there some kind of tool to convert xml to persistence ejb entity been?" New topic
Author

Is there some kind of tool to convert xml to persistence ejb entity been?

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
im using persistence ejb api to map tables to entity been in jboss
But I manually add the annotations to the entity classes and then manually create the xml file
Is there any way to just create the xml files and then to produce the class from it with the annotations?
Or better to take table and create the xml and the class?
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364
Have you considered the Hibernate Tools, in particular reverse engineering?
Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
does it support plain ejb persistent mapping ?
Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
that is im using this shchma :
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
version="1.0">

and not using at all the hebernate-mapping stuff , can it be done with this tools ?
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364
I understand that one can produce JPA annotated classes with this tool; not sure about the orm.xml format.
 
jQuery in Action, 2nd edition
 
subject: Is there some kind of tool to convert xml to persistence ejb entity been?
 
Similar Threads
EJB3 Beta Certification - EntityManager BASIC notes.
JPA Query
EJB3 Beta Certification - Help =))
Persistence unit xml or annotations in EJB3?
Ejb3.0 features