Home > Software engineering >  Spring Boot create Database from entites with hibernate dont work
Spring Boot create Database from entites with hibernate dont work

Time:10-11

im created entities and want to create a embedded h2 database with tables and columns from this entities.

Thats my application.yml file: enter image description here

intellij logs the correct sql statements from hibernate (so it runs atleast): enter image description here

but my connected database shows empty in intellij:

enter image description here

what do i wrong?

CodePudding user response:

You are using an im-memory database.

That means if you "connect" from the application you have a different database as when you "connect" from Intellij.

CodePudding user response:

when i check the h2 console:

enter image description here

and try to connect to this db:

enter image description here

its still empty:

enter image description here

CodePudding user response:

Nevermind, i found this in another stackoverflow thread:

enter image description here

  • Related