Thursday, April 19, 2012

Generating script when using EclipseLink

I am using EclipseLink as JPA implementation and I am adding these properties in the persistence.xml but I can't see any scripts generated? Where are they supposed to be saved or have I misunderstood this property.



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


Is it possible to define a script as well that would be run after the tables are created? The same way as a seed script in Rails?





No comments:

Post a Comment