[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Data row initialization for DataBase Table

Hi all,

in my persistence.xml I set:

<property name="eclipselink.ddl-generation" value="create-tables" />
<property name="eclipselink.ddl-generation.output-mode" value="database"/>

in order to let eclipelink generate the DataBase schema when my application start-up.
I would like to know if there is (or what is) an easy-way to insert on tables, initial rows. I would like for example that in my "department" table (related to my Department entity class), i have the possibility to have a certain number of "pre-loaded" rows.


I can manage that using my db scripts, but I would like to know if some eclipselink configuration can be usefult to get the same goal.

BR,
Enrico