SQL quoted identifiers in Hibernate by R4R Team

SQL quoted identifiers : Hibernate gives the potability to force to quote an identifier in the generated SQL enclosing the table or column name in backticks in the mapping element. Hibernate will use the correct quotation style for the SQL Dialect. In hibernate this is usually double qotes, but in the SQL server uses brackets and MySQL uses backticks.

Small Example:

<class name="Lion" table="`Item Lion`"> 

<id name="id" column="`Item Id`"/>

<generator class="assigned"/>


<property name="itemNumber" column="`Item #`"/> ... 


Leave a Comment:
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!