users@glassfish.java.net

Re: RE: JPA: Preload data

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Mar 2009 09:38:28 PDT

Hi,<br/>
<br/>
Thanks, put my problem is how do i pupulate the actual tables in the database with data? For example lets say I have a table with cities and a City entity. When I deploy my application for the first time, the cities table will be created in the database from the City entity. But the cities table of course empty. What if i would like a number of speciic cities to be preloaded (populated) into the database? How can i trigg this when the application is deployed?<br/>
<br/>
Thanks,
Mattias
[Message sent by forum member 'nightzero' (nightzero)]

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