• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rename tables using hibernate

 
Eun Mi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I have a war file which has some jar "Test" in some folder 'lib'. What I want is this jar to call tables with prefixes, but in jar it is already anotated. For example in jar it is annotated as Table, but I want the jar to call PREFIX_Table. I cannot change the jar, is it possible to do with some configurations?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. In EJB 3, the XML configuration overrides the annotation configuration. This means you can specify that configuration in the XML file. I assume Hibernate does the same thing. See this for some xml.

Your post sits better in our ORM forum that IDEs so I've moved it for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic