hibernate 关联

heibernate.cfg.xml里面把

       <property name="hbm2ddl.auto">update</property>注释掉

然后子啊单元测试里面用

new SchemaExport(new AnnotationConfiguration().configure()).create(true, true);

却一直没办法在数据库里生成表

但是在manytomany,应该生成的中间表却有,为何啊

原文地址:https://www.cnblogs.com/bashala/p/3164120.html