-
Type: Bug
-
Status: Done (View Workflow)
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: common 0.11
-
Fix Version/s: common 0.11
-
Labels:None
Delete query is build using simple name of entity class.
"delete " + getType().getSimpleName() + " e where e.id= :id";
When multiple mapped entities has the same name (e.g. common Branch and jcomuune Branch) only full names are supported to avoid name conflicts. In such case this method throws exception (smth like "not mapped entity).
To cover this cases canonical name should be used.
"delete " + getType().getCanonicalName() + " e where e.id= :id";