Can someone explain me is it true that hibernate put collection to first lvl cache
is it looks like
frist request by RestController
@GetMapping("/findfoo")
public List<Foo> findFoo(){
List<Foo> listFirst=fooRepository.findAll();
return listFirst;
}
hibernate will do this : select * from foo; and second requet
List<foo> listTwo=fooRepositoy.findAll();
hibernate will get listFirst from first lvl cache ?or it will do the same select to data base?