I have some classes in my java spring boot project. I use jpa and xampp for localhost. All the Entity classes work and create tables for every @Entity class. But this class does not work. Why?
@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
public class Match {
@Id
private String matchId;
@Enumerated
private MatchType matchType;
}
Try this:
@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table(name = "\"Match"\")
public class Match {
@Id
private String matchId;
@Enumerated
private MatchType matchType;
}
More general, if you set
hibernate.globally_quoted_identifiers=true
every identifier gets quoted.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.