Quote:
Hi, i need to insert a default set(a set of INSERT INTO) of data at every first start of the program(before the creation of the db), with the same modality of hbm2dll update mode.(If is the first start of the database i need to execute the INSERT INTO statement, through hibernate,otherwise the program must not do the INSERT).
This is possible to do?
Create a file named "import.sql", it will be automatically executed (imported) into your database when the schema is created. I don't remember if it is created when using "update", you might want to try "create" after having it dropped. I always develop with an in-memory database like H2 and setting it in create-drop for unit tests, using an import.sql to add the basic needed data.