Dobry den (noc),
pouzivam ve sve Hibernate-Spring aplikaci
<bean name="openSessionInViewInterceptor"
class="org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor">
                <property name="flushModeName">
                        <value>FLUSH_AUTO</value>
                </property>
        </bean>
Popsano zde: 
http://www.jroller.com/page/kbaum?entry=orm_lazy_initialization_with_dao
Bohuzel stale dostavam hlasku: Request processing failed; nested
exception is org.springframework.dao.InvalidDataAccessApiUsageException:
Write operations are not allowed in read-only mode (FlushMode.NEVER) -
turn your Session into FlushMode.AUTO or remove 'readOnly' marker from
transaction definition

Reseni by melo spocivat v pouziti transactionmanagera, coz zkousim,
ale bez uspechu.


Nemate nekdo (kdo resil tento problem) funkcni nastaveni pro spring
MVC? Nebo aspon nejakou dobrou radu? ;-)

Odpovedet emailem