I am currently working on spring boot jpa applicaiton. it used to work normally with h2 1.4.196. After I upgrade to h2 to latest version(2.1.210). I am facing issues with the application.
I am facing issues with using reserved keywords in application. I have used key, value as fields in a class. I am able to solve this problem by using below statement.
spring.jpa.properties.hibernate.auto_quote_keyword = true,
above property puts quotes around the keywords which are used in application.
after using above property I am able to compile the application successfully, but while application is running I am facing issue with a field "language" that I used in application.
what I am guessing is, language is normally generated in liquibase generated database, but while querying, hibernate is putting "quotes" around language, thus producing a mismatch and giving error
Can someone please help to solve the issue.
Below is the generated sql from spring boot
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column "USER0_.language" not found; SQL statement: select user0_.id as id1_1_, user0_.dashboard_order as dashboar2_1_, user0_.date_format as date_for3_1_, user0_.user_email as user_ema4_1_, user0_."language" as language5_1_ from blu_dash_user user0_ where upper(user0_.user_email)=upper(?) [42122-210]