2 Replies Latest reply on May 13, 2013 8:43 AM by maxandersen

    Hibernate Tools ignoring reverse engineering package=".." in table-filter

    rroopreddy

      Working with Eclipse with Tools version 3.6.0.Final-v20130327

      With MySQL 5.6.x version with InnoDB dialect

       

      My file looks like the following

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >

       

       

        <!--  These are from entity.common included to generate proper reference package name  -->

        <table-filter match-catalog="entity" match-name="status_code" package="entity.common" />

       

      <!--  These are from entity.person included to generate proper reference package name  -->

        <table-filter match-catalog="entity" match-name="person" package="entity.person" />

       

      </hibernate-reverse-engineering>

       

      I left the default package in GUI empty as I have the "package" specified for each table-filter. Code for the above two files are generated into "default" package and not into respective "entity.common", "entity.person". If I specify the default package in GUI then both classes are generated into that package.

       

      Somehow the package specified in reverse engineering file is ignored