hibernate がテーブルを作成できないのはなぜですか?
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/e_shop</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.hbm2ddl.auto">create</property>
<property name="hibernate.show_sql">true</property>
AnnotationConfiguration cfs=new AnnotationConfiguration();
cfs.configure("daoHibernate/hibernate.cfg.xml");
new SchemaExport(cfs).create(true,true);
私のすべてのテーブルが変更され、テーブルがドロップされ、再び作成されました。なぜ新しいセッションを開始するのか返信してください