解决java.sql.SQLSyntaxErrorException: Table 'sell.hibernate_sequence' doesn't exist

id attribute to increment, added directly @GeneratedValue reported the following error

    @Id
    @GeneratedValue
    private Integer Id;

Solution:

After adding @GeneratedValue strategy = GenerationType.IDENTITY

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer Id;

 

Guess you like

Origin blog.csdn.net/qq_41937388/article/details/90904170