Results 1 to 3 of 3

Thread: populate database with import.sql file and hibernate

Threaded View

  1. #1
    Join Date
    Aug 2010
    Location
    Goteborg, Sweden
    Posts
    434

    Default populate database with import.sql file and hibernate

    I have put an import.sql file — exported from my MySQL DB — in the root of my project and have these settings in Persistence.xml
    Code:
    <property name="hibernate.hbm2ddl.auto" value="create"/>
    . I have also tried the META-INF directory.

    What else do I have to do in order to populate my DB before I run my integration tests as well as on deploy? As it is now nothing seems to happen and my DB is empty. I can import the file by hand, but I need this done automatically.
    Last edited by MiB; Dec 20th, 2011 at 02:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •