Hibernate 冬眠不';不生成集合字段
我做了一个新项目,试图在netbeans IDE上使用Hibernate。 我在这个链接上遵循官方指南: 以配置项目 这是我的hibernate.cfg.xml文件:Hibernate 冬眠不';不生成集合字段,hibernate,class,netbeans,generator,pojo,Hibernate,Class,Netbeans,Generator,Pojo,我做了一个新项目,试图在netbeans IDE上使用Hibernate。 我在这个链接上遵循官方指南: 以配置项目 这是我的hibernate.cfg.xml文件: <hibernate-configuration> <session-factory> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<hibernate-configuration>
<session-factory>
<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/hdemic?zeroDateTimeBehavior=convertToNull</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.show_sql">true</property>
</session-factory>
</hibernate-configuration>
<hibernate-reverse-engineering>
<schema-selection match-catalog="hdemic"/>
<table-filter match-name="Users"/>
</hibernate-reverse-engineering>
org.hibernate.dialogue.mysqldialogue
com.mysql.jdbc.Driver
jdbc:mysql://localhost:3306/hdemic?zeroDateTimeBehavior=convertToNull
根
真的
这是我的Hibernate.reveng.xml文件:
<hibernate-configuration>
<session-factory>
<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/hdemic?zeroDateTimeBehavior=convertToNull</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.show_sql">true</property>
</session-factory>
</hibernate-configuration>
<hibernate-reverse-engineering>
<schema-selection match-catalog="hdemic"/>
<table-filter match-name="Users"/>
</hibernate-reverse-engineering>
当我选择从POJO生成类时,我的所有“实体类数据库”都是用除“设置字段”之外的所有字段创建的,我指的是通过hbm.xml文件中指定的关系生成的集合(缺少关系!!!)
我必须向配置或xml文件添加一些属性?
我尝试用另一台计算机(linux)做同样的事情,一切都很好。我还认为是我的安装或我的电脑(mac os)的问题。
两者都有相同的安装
请帮帮我,谢谢大家