You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raise BeforeResultCommit event - captured by JPAPlugin and then close the current JPAContext
me i.e. the User class has a method getRoles() method, which call to AAALookup.roles(roles), in which will result a request to JPADao.findOneBy(...) call
Since the current JPAContext has been closed already, thus the above JPADao.findOneBy call will raise exception complains that JPAContext is not available.
To handle this scenario, i.e. it require JPA database query after BeforeResultCommit event, we need to generate JPAContext for JPA queries.
The text was updated successfully, but these errors were encountered:
We have experienced a issue that reporting JPAContext has closed in automate testing of bookmark demo project.
Specifically the following endpoint:
The logic of rendering
me
result:me
BeforeResultCommit
event - captured byJPAPlugin
and then close the currentJPAContext
me
i.e. theUser
class has a methodgetRoles()
method, which call toAAALookup.roles(roles)
, in which will result a request toJPADao.findOneBy(...)
callSince the current
JPAContext
has been closed already, thus the aboveJPADao.findOneBy
call will raise exception complains thatJPAContext
is not available.To handle this scenario, i.e. it require JPA database query after
BeforeResultCommit
event, we need to generateJPAContext
forJPA
queries.The text was updated successfully, but these errors were encountered: