-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Inserting initial data to schema at deploying time.
PostPosted: Tue Mar 11, 2008 8:31 am 
Newbie

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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.