title: Hibernate get action cause an update action
body: <p>We use HibernateTemplate to get an object, but it cause an update action.Our database are read-only, because we don't need to update data. </p>
  
  <p>Why that happen? Please Help me..</p>
  
  <p>My code:</p>
  
  <pre><code>  public &lt;T&gt; T get(Class&lt;T&gt; clasz, Serializable id) {
      return (T) getHibernateTemplate().get(clasz, id);
  </code></pre>
  
  <p>}</p>
  
  <p>The error message as follow:</p>
  
  <pre><code>org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Could not execute JDBC batch update; uncategorized SQLException for SQL [update kytv_resource_station set area=?, create_id=?, create_time=?, display=?, modify_id=?, modify_time=?, nature=?, partner=?, showDomain=?, status=?, tv_character=?, tv_desc=?, tv_elogo=?, tv_elogo_id=?, tv_keyword=?, tv_logo=?, tv_logo_id=?, tv_name=?, tv_order=?, tv_short_name=?, tv_show_name=?, tv_tvm_name=? where id=?]; SQL state [HY000]; error code [1290]; The MySQL server is running with the --read-only option so it cannot execute this statement; nested exception is java.sql.BatchUpdateException: The MySQL server is running with the --read-only option so it cannot execute this statement
          at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:124)
          at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.translate(SQLErrorCodeSQLExceptionTranslator.java:322)
          at org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:424)
          at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:410)
          at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
          at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
          at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:522)
          at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:516)
  </code></pre>