users@glassfish.java.net

JPA: Preload data

From: <glassfish_at_javadesktop.org>
Date: Sun, 08 Mar 2009 12:24:35 PDT

Hi!<br/>
In a JPA application where all tables are created at application deployment, is there a "best practice" way of preloading the database with initial data, just after the application is deployed and the tables created, just before the application starts up?<br/>
<br/>
How would you solve this?<br/>
<br/>
Thanks,<br/>
Mattias
[Message sent by forum member 'nightzero' (nightzero)]

http://forums.java.net/jive/thread.jspa?messageID=335753