Reputation: 1
My POSTGRESQL table column in Uppercase and in entity i mentioned colume name with uppercase using @column but it gives error as column doesnt exists ? Posgress doesn't support @column with uppercase value
Upvotes: 0
Views: 1314
Reputation: 419
Identifiers (including column names) that are not double-quoted are folded to lowercase in PostgreSQL. Column names that were created with double-quotes and thereby retained uppercase letters (and/or other syntax violations) have to be double-quoted for the rest of their life:
"first_Name"
Values (string literals / constants) are enclosed in single quotes:
'xyz'
You can also check this documentation
I hope, it helps!
Upvotes: 0
Reputation: 1976
Try to use
@Column(name="`MYUPCASECOLUMN`")
Important is the `-charcter.
Upvotes: 1