• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you considered the Hibernate Tools, in particular reverse engineering?
 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does it support plain ejb persistent mapping ?
 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that one can produce JPA annotated classes with this tool; not sure about the orm.xml format.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic