Why TestEntityManager puts data at id 0 in h2 in memory database?

前端 未结 0 2021
长发绾君心
长发绾君心 2021-01-21 12:48

I was trying to test findById(1) of Jpa Repository. But it was returning empty. When I used 0 for id , it returned the right object.

Why the TestEntityManager saves the d

相关标签:
回答
  • 消灭零回复
提交回复
热议问题