Observed that while Hibernate issues an update query, in HSQLDB delete and insert queries are executed. It is weird. Due to that non-updated values are becoming null. Any solution for this?
观察到当Hibernate发出更新查询时,在HSQLDB中执行delete和insert查询。真奇怪。由于未更新的值变为空。对此有何解决方案?
1 个解决方案
#1
0
Make sure you are using the following configuration in your hibernate.cfg.xml :
确保在hibernate.cfg.xml中使用以下配置:
<property name="hibernate.hbm2ddl.auto">update</property>
If this value is set to 'create', then instead of updation,re-insertion will take place.
如果此值设置为“create”,则不会进行更新,而是进行重新插入。
#1
0
Make sure you are using the following configuration in your hibernate.cfg.xml :
确保在hibernate.cfg.xml中使用以下配置:
<property name="hibernate.hbm2ddl.auto">update</property>
If this value is set to 'create', then instead of updation,re-insertion will take place.
如果此值设置为“create”,则不会进行更新,而是进行重新插入。