Case Sensitivity in HQL and SQL by R4R Team

Here in the HQL case sensitivity means is that the basic difference between HQL and SQL.  With the exception of names of Java classes and properties, queries are case-insensitive. So SeLeCT is the same as sELEct is the same as SELECT, but org.hibernate.eg.FOO is not org.hibernate.eg.Foo, and foo.barSet is not foo.BARSET.

From the above discussion we can understand that lowercase HQL keywords and in any lower or upper are SQL keyword. Some users find queries with uppercase keywords more readable, but this convention is unsuitable for queries embedded in Java code.
Leave a Comment:
Search
Categories
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!