10 Replies Latest reply on Apr 22, 2010 11:12 PM by bart king

    import.sql and hibernate.hbm2ddl.auto doesn't work

    Kiryl Kazakevich Newbie


      I'm new to Seam and trying to use a feature to populate db with import.sql file. In my project I use Jboss 4.2.2, Seam 2.0.2SP1 and Postgres 8.2.

      I put import.sql into root of a jar file that is packacked into ear, persistence.xml looks like this:

          <persistence-unit name="comix">
                  <property name="hibernate.dialect"
                  <property name="hibernate.hbm2ddl.auto"
                  <property name="hibernate.show_sql" value="true"/>

      On server startup, tables and sequences are created, but tables are empty. Is there any way to check or debug, what is a reason why import.sql is ignored?

      Any help or suggest is appreciated.

      Thanks in advance.