I got the following database exception when carrying out JPA persisting (JDK SE) record to STUDENT table which does not exist in the first place:
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown table 'student'
Error Code: 1051 Below are the tutorial codes that generates the record in STUDENT:
Table STUDENT did get generated despite the above exception. However, this exception will no longer show up for any additional persistences once STUDENT has been generated. The question is how to / what needs to be done to create automatically generate this table quitely in an empty database without getting the above exception?
I am running JDK1.6.0_17, Netbeans 6.9.1, GF3.1, MySQL 5.1 on Windows 7.