I’m looking for a tutorial explaining how to work with these 3 technologies, found this one, but it’s working with HyperSql DB (yeah, I edited hibernate.cfg.xml to connect with MySql… but I just received a bunch of errors).
I’m looking for a tutorial explaining how to work with these 3 technologies, found
Share
Your table creation script is wrong for the hibernate generator strategy you’re currently using. As I said, your primary key should be defined as autoincrement:
You should let SchemaExport generate your DDL for you, it will typically prevent such mistakes 😉