1 Reply Latest reply on Nov 8, 2011 5:48 AM by Adam Warski

    Generating custom revision entity with ant

    mikulka Newbie

      I'm using hibernatetool to create sql for the tables. I have created a custom revision entity.

       

      If I use HibernateToolTask without custom revision entity, then none of the envers tables are created in sql.

      If I use HibernateToolTask with custom revision entity, then the custom revision entity table is created in sql.

      If I use EnversHibernateToolTask without custom revision entity, then the default revision entity table is created into configured envers schema in sql.

      If I use EnversHibernateToolTask with custom revision entity, then the custom revision entity table is created into default schema in sql.

       

      How can I make the custom revision entity generation work like the default revision entity generation?

      1) Don't create it if HibernateToolTask is used.

      2) Create it into defined envers schema if EnversHibernateToolTask is used.