Hi,
How do we place the hibernate or spring in debug mode? any help??? We get the sql statements printed off when they fire and we see that -during debuggin, when the transaction is being ended update statements are being fired and we get batch update exception. The exception says unable to update null values into the column (its an auto generated primary key) and fails.
why should the update fire at all when i am doing is selection?? any pointers would be appreciated (or the chapter names in the book java***hibernate)
The interceptors that you see in the xml file are to handle transactions.
you may want to see the forum:
http://forum.hibernate.org/viewtopic.ph ... 45#2358445
the xml is formatted for easier understanding:
<bean name="abstractSimpleWrite" lazy-init="true"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="hibernateTrMgr" />
</property>
<property name="transactionAttributeSource">
<bean class="org.springframework.transaction.interceptor.MatchAlwaysTransactionAttributeSource">
<property name="transactionAttribute">
<ref bean="simpleWriteTrAttr" />
</property>
</bean>
</property>
</bean>
<bean id="simpleWriteTrAttr"
class="org.springframework.transaction.interceptor.DefaultTransactionAttribute">
<property name="propagationBehaviorName">
<value>PROPAGATION_REQUIRED</value>
</property>
<property name="isolationLevelName">
<value>ISOLATION_DEFAULT</value>
</property>
</bean>