User
is a reserved keyword in HSQLDB. You could user "User"
instead but i'd recommend you to rename the table to something else, and provide the name of the table in the Table
annotation like follows:
@Entity
@Table(name = "my_user_table")
public class User { .... }
EDIT ON UPDATE:
The error you get happens when trying to apply Evolutions. As Evolutions come from the SQL file, even if you don't have model they are run if the SQL exists (Evolutions and model classes are related in purpose but Play considers each one an independent component)
The error means that either the database can't be accessed or your user has no privileges. I see you are trying to use the same database as before. I'd do the following:
- Create a new project, from scratch, with no files besides the one
play new
generates. - Create a new database. Don't reuse the previous one,.
- Add your new database details to that new project
- Try to launch the application. It may fail here, then you know your db details are wrong.
- If it works, add the Evolution files to your new project
- Try to run the project again. If it fails, you will know it is the Evolution file that is wrong (syntax errors)
- Add the model classes
- Try to run the project again. If it fails, you know your model doesn't match the database.
Doing the steps in order should help you locate the error.