| 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.
|
 |
 |
|
|
subject: Is there some kind of tool to convert xml to persistence ejb entity been?
|
|
|