I refer to the professor's video to write my own Lab4 homework. But when I run the program, it prompts me that a syntax error is occur for mysql.
I checked my code with the professor's Sample code,But can't find the error.
In fact, there is not much difference between the business class that I created and the pet class which create by professor.
Now I know the reason, I think it is a very typical mistake, If you are not familiar with mysql, you may have the same problem as me.
So, IN the answer column, I'll share with you one thing need to notice when accessing the database using JPA