Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hibernate 冬眠不';不生成集合字段_Hibernate_Class_Netbeans_Generator_Pojo - Fatal编程技术网

Hibernate 冬眠不';不生成集合字段

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>

我做了一个新项目,试图在netbeans IDE上使用Hibernate。 我在这个链接上遵循官方指南:

以配置项目

这是我的hibernate.cfg.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>

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)的问题。 两者都有相同的安装

请帮帮我,谢谢大家