Joined: Tue Feb 19, 2008 8:18 am Posts: 1 Location: Samara, Russia
|
I've jast started to learn Hibernate and JPA. I found it very useful that SchemaExport (hbm2dll) can create DDL statements for database schema. We simply deploy our application onto an app server and don't have to do anything else. It's wonderful. But I aslo want to put some initial data to tables. Let assume that we have some bank application. By default there is one user in USERS table, bankadmin. I wonder if it's possible to hold this information somewhere (in file or in code). And when our application is deployed this information is inserted into corresponding tables. I looked it up in "Java Pesistence with Hibernate" and through this forum but I found nothing. Isn't this realy very important task? Thanks for reading.
Ps. I'm sorry if my english is not very well.
_________________ SSAU, BXZ, and ets.
|
|