In my persistence layer i have remove method that will remove the entities in removed state and EntitySession to commit the changes.
- The
EntitySession
transaction = entityManager.getTransaction();
- The remove method
public BehindCacheBuilder<R, V> remove(Object object) {
entityManager.remove(object);
return this;
}
- And committing the transaction
transaction.commit();
But when i execute the method nothing will remove from datasource.
