Org. springframework. dao. invaliddataaccessapiusageexception: write operations are not allowed in read-only mode (flushmode. never/manual): Turn your session into flushmode. commit/auto or remove 'readonly' marker from transaction definition.
Solution:
<Filter-Name> opensessioninviewfilter </filter-Name>
<Filter-class>
Org. springframework. Orm. hibernate3.support. opensessioninviewfilter
</Filter-class>
<Init-param>
<Param-Name> sessionfactorybeanname </param-Name>
<Param-value> sessionfactory </param-value>
</Init-param>
<Init-param>
<Param-Name> singlesession </param-Name>
<Param-value> true </param-value>
</Init-param>
<Init-param>
<Param-Name> flushmode </param-Name>
<Param-value> auto </param-value>
</Init-param>
</Filter>
Write operations are not allowed in read-only mode (flushmode. Never/manual): Turn your session into flushmode. Commit/auto or remove 'readonl