Closed Mike-the-one closed 4 years ago
Found the problem.
The table row has a field which referrers to another table, db schema is set to nullable, but entity class is set to nullable=false. Changed to nullable=true then it worked. I don't know why... so if anyone knows why this caused the issue, please help me to understand :)
Closed due to inactivity, please reopen if needed.
A strange thing happened today.
I have the following call in my code:
It was working fine a couple days ago, the spec is it to limit the result to the specified user. It stopped working today (as of today, the total records is 23 for all users).
It returns this message:
The database has record 4680.
I turned on trace, I found this in the log:
then a long query, and followed by:
But interesting thing is, if I call a MessageRepository.findAll before datatable repository's
findAll
call:then the query worked!
So why is that? did I miss config something?
And this is my datatableMessageRepository class:
I have other datatablerepository classes, they also do not override any method (similar to above) and they seem to work fine.
thanks