Does remove(Object entity) method of EntityManager work only on those objects got from find() method?
I have following code snippet:>
Yes in case of merge or remove operation you have to use a find() operation and then use the remove method on the retrieved entity.