Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ask Hibernate add Quotes for Generated table and column names  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!