I'm getting the below exception:
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [
It happens when I try to update an object using a Form again. So in the first time it works well but when I try to update the same object again i got that exception.
Could it be flush in the session ?
Here is my Entity
@PersistenceContext(unitName = "JPAService", type = PersistenceContextType.EXTENDED)
private EntityManager nasc;
Here is my service:
@Stateless
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@TransactionManagement(TransactionManagementType.CONTAINER)
Thank you!