Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
Description
#save() method invokes session.refresh(false) as well after session.save().
This is also unnecessary working more than expected.
I think client application should invoke #refresh() manually if needed.
public void save() throws ObjectBeanPersistenceException {
try
catch (Exception e)
{ throw new ObjectBeanPersistenceException(e); }}
Even though the status is like that as commented, I think it should be manually invoked by clients instead of doing like this implicitly from the core side.
I don't think it's a good idea to invoke something unexpected. Rather we'd recommend developers what they should do for the cases.
In many cases, they don't have to refresh the session. In some cases, they do.
For example, if they want to retrieve beans again which were previously retrieved with the same session.
The influence of the unexpected #refresh() call could affect performance, too.
Attachments
Issue Links
- is a result of
-
HSTTWO-1015 Account for folderWorkflow minor change in ecm 2.12.04 and higher wrt that now the execution is done by a different session
- Closed