Hi,
I am trying to speed up some code - where i check if an entity exists in order to make a decision.
In Java - It looks like this (pk - is the primary key of the entity):
MyClass find = em.find(MyClass.class, pk); boolean exists = find != null;
Is there a way to check the existence without loading the entity?
Thanks