#Spring, Jpa, H2: table not found, database empty
1 messages ยท Page 1 of 1 (latest)
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
pecific discord server, and the bot will save this information in a database using Spring Data JPA with an H2 in-memory database.
However, when I try to retrieve the saved channel from the database, I keep getting an error saying that the table does not exist or that the database is empty.
I have double-checked my entity class, repository interface, and application properties to ensure that everything is set up correctly. I have also tried restarting the application and recreating the database schema, but I still cannot seem to retrieve any data.
I suspect that there may be an issue with the way I am configuring Spring Data JPA or with how I am setting up my H2 database connection. If anyone has encountered a similar issue or has any suggestions on how to troubleshoot this problem, I would greatly appreciate your help.
Thank you in advance for any assistance you can provide.