Reputation: 55
I have gone through Stack overflow existing scenarios of why we are getting this error. I have just simple person class and a service for which I am writing a test case using embedded database. There is no problem in the code but it is not creating database.
Upvotes: 1
Views: 2993
Reputation: 51
I had the same problem and when I started to read the logs, I saw that, it couldn't create a table, because one of my string fields was annotated with @Column(columnDefinition = "TEXT").
So, most of the cases it can't create/select from a table, not because you don't have access to it. Just read your logs, and see what is the problem with creating/selection the table.
Upvotes: 1