I have the following delete statement:
EntityManager em = persistence.getEntityManager();
em.createQuery("delete from erp$DemandPlan e where e.plant.id = :plantId", DemandPlan.class) .setParameter("plantId", plant.getId()) .executeUpdate();
I get the following error. I want to keep my soft deletion mode on, but wondering what’s the mistake!
UnsupportedOperationException: Delete queries are not supported with enabled soft deletion. Use 'cuba.enableDeleteStatementInSoftDeleteMode' application property to roll back to legacy behavior.