0 Replies Latest reply on Oct 18, 2005 11:55 AM by neelixx

    Insert SQL on deploy with hbm2ddl?

    neelixx

      I have hbm2ddl running as "drop-create". As I re-deploy my development EAR, it re-creates by tables. Good.

      Is there a way to have hbm2ddl auto-run a sql script after creating the tables? It's a pain to keep running my sql script for my Unit Tests.

      I thought I saw a parameter when JBoss starts up, that it was looking for a sql script when deploying my app, but now when I'm looking for it, I can't seem to find it.

      Anyone point me in the right direction?

      THanks!