Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ask Hibernate add Quotes for Generated table and column names

 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm really curious, is it possible to put quotes in generated table names and column names?
Assuming i have defined my class as below :


Then this class will be converted into table and column names as defined in the class.

With that class, how to set and tell the Hibernate to create table name to be 'Student' and column names to be 'id', and 'name'?

Any suggestion will be highly appreciated.

Thank you very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic