Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table does not exist error. #2

Open
Prathemesh opened this issue Apr 21, 2018 · 2 comments
Open

Table does not exist error. #2

Prathemesh opened this issue Apr 21, 2018 · 2 comments

Comments

@Prathemesh
Copy link

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?

@Bushy-Given
Copy link

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

@AbhishekAnand01
Copy link

AbhishekAnand01 commented Jan 3, 2021

I have created a demo project for you please try it. Hoping this will help you.

Please clone the below repository.
https://github.com/AbhishekAnand01/Test-Project.git

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants