#Spring, Jpa, H2: table not found, database empty

1 messages ยท Page 1 of 1 (latest)

mossy belfryBOT
#

<@&987246584574140416> please have a look, thanks.

#

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>.

#
TJ-Bot
Hey everyone. I am working on a simple discord bot using java + spring for my backend. I have set it up so that the user can specify a channel for a specific type of bot interaction. Currently the only implemented feature is dice rolling. **Code will be

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.