-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with @Table(name = "\"TableName\"") #140
Comments
BatooJPA does not sanitize the name of the table. Why do you put the quotation marks around the name? |
Because I make some benchmark of different JPA providers, and try to have same source for all of them. And BatooJPA is the only one, which has this issue. |
However removing quotation marks, seems to work ok, but still I am interesting why others JPA providers works well with quotation marks. |
That is an interesting point. As I said earlier, BatooJPA does NOT sanitize the table names. Obviously others do. Out of curiosity why do you need the quotes? If there's a use case we certainly may implement a DB specific sanitizing processor. |
I found out, I really don't need them. First I have only |
OK still do not understand with Eclipselink does not work with |
As I understand, the quotation should be replace by JPA provider to the database delimiters for long identifier / case sensitive / reserved word (for example for MSSQL something like [...] or '...'). |
When I use Table annotation:
@table(name = ""TableName"")
BatooJPA use in MySQL query "TableName" instead of
TableName
The text was updated successfully, but these errors were encountered: