Skip to content

Commit 6d8f115

Browse files
committed
JAVA-41267 Fixed the annotations to use the escaped table name
1 parent b25d5ed commit 6d8f115

File tree

1 file changed

+3
-0
lines changed
  • persistence-modules/spring-data-jpa-repo/src/main/java/com/baeldung/spring/data/persistence/customrepository/model

1 file changed

+3
-0
lines changed

persistence-modules/spring-data-jpa-repo/src/main/java/com/baeldung/spring/data/persistence/customrepository/model/User.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
import jakarta.persistence.Entity;
44
import jakarta.persistence.GeneratedValue;
55
import jakarta.persistence.Id;
6+
import jakarta.persistence.Table;
7+
68
import java.util.Objects;
79

810
@Entity
11+
@Table(name = "`user`")
912
public class User {
1013

1114
@Id

0 commit comments

Comments
 (0)