• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate mapping

 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one xml file,I want to create one table according to this xml file,building mapping from class to table.but now I have only xml info,I want to create one table then building maping,How can I do it?thanks!
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand you right you already have the mapping (your xml file) so you don't need to build the mapping. There are tools avaliable with Hibernate to create schema from mapping files (look at Hibernate's site for the Schema Export/Schema Update utilities. However, if you are unsure how to create a DB schema independently of Hibernate, I'd go and learn that before trying to go any further with an ORM tool.
[ June 08, 2004: Message edited by: Paul Sturrock ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic