I have a @NamedQuery that should delete fomr DB rows basing on my
conditions.
When I try to run the query, the following error occour:
JAVA.LANG.ILLEGALSTATEEXCEPTION: EXCEPTION DESCRIPTION: NO TRANSACTION
IS CURRENTLY ACTIVE
Note:
1. i have no problem with the "SELECT" @NamedQuery
2. if I try to run the SQL of the created @NamedQuery from outside, the
rows are correctly removed.
What can be the problem?I need to set somethink on persistece.xml
configuration?There is additional task to do for delete query?