Commit dfd4ce0
authored
Update ToSqlVisitor.java
- Add SQL string quotation for strings. Otherwise the SQL query is not valid.
- Only make first letter of variable lowercase. `private String firstName;` will be called "firstName" on database, not "firstname".
- Only replace method names that start with "get". Boolean getters have the same name as the private variable. For example the getter for `private boolean isUnderAge;` would be `public boolean isUnderAge();` and not `public boolean getIsUnderAge();`.1 parent bc9df21 commit dfd4ce0
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
57 | | - | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
72 | | - | |
| 76 | + | |
0 commit comments