每次啟動TestStudents測試的時(shí)候,最后都會清空表中數(shù)據(jù)
<property name="hbm2ddl.auto">update</property>
hibernate的配置是這樣,但是每次進(jìn)行TestStudents進(jìn)行測試的時(shí)候,都是先插入,再刪除,在創(chuàng)建。導(dǎo)致表中的數(shù)據(jù)一致為空
這樣,數(shù)據(jù)插不進(jìn)去
<property name="hbm2ddl.auto">update</property>
hibernate的配置是這樣,但是每次進(jìn)行TestStudents進(jìn)行測試的時(shí)候,都是先插入,再刪除,在創(chuàng)建。導(dǎo)致表中的數(shù)據(jù)一致為空
這樣,數(shù)據(jù)插不進(jìn)去
舉報(bào)