尝试使用 orm 删除/创建表但面临以下情况:
当我尝试删除/创建表时,我看到表已创建但数据。我有一个包含数据但没有运气的 sql。我对删除/创建时必须导入的 sql 有正确的定义。
this.ormsettings = {autorebuild="false"};
this.ormsettings.dialect= "oracle10g";
this.ormsettings.logsql="true";
this.ormSettings.dbCreate = "dropcreate"; //"dropcreate";
this.ormsettings.sqlscript="mydata.sql";
this.ormsettings.eventhandling=true;
this.ClientManagement="No";
this.sessionmanagement = true;
this.sessiontimeout = createTimeSpan(0,2,0,0);
When I look at hibernate log files I see following line - which I believe has no sense because as I googled and I see that this line of log is very common and no one is commenting about it.-
Only clue that I have:
</pre>08/16 11:22:00 [jrpp-3] HIBERNATE DEBUG - import file not found: /import.sql
Any ideas?