• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Ask Hibernate add Quotes for Generated table and column names

 
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic