You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am asking because I am getting a "Table not found" error. I searched online wherein all the examples use schema.sql to create the table in the H2 database. Is this something you missed or is there something I am missing due to which I get the "Table not found" error?
The text was updated successfully, but these errors were encountered:
You can set spring.jpa.hibernate.ddl-auto = create
So when you run your project it will automatically create the table for you. Make sure you change it to update. After running your application so that next time you run it doesnt drop the table
Where do I put the
create table
command?I am asking because I am getting a "Table not found" error. I searched online wherein all the examples use
schema.sql
to create the table in the H2 database. Is this something you missed or is there something I am missing due to which I get the "Table not found" error?The text was updated successfully, but these errors were encountered: