-->
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.  [ 6 posts ] 
Author Message
 Post subject: Seed data tooling with Hibernate
PostPosted: Thu May 05, 2005 3:02 pm 
Newbie

Joined: Thu May 05, 2005 2:57 pm
Posts: 2
Hi everyone,

I am using Hibernate on top of my database. I am looking for a way to create a database schema AND insert seed data inside some tables of the schema that has been created. The "schemaexport" feature from the Hibernate tools helps me to create the correct schema for now, but I don't know how to insert the seed data into the tables.

Does anybody know about any toolkit I could use to create schema files declaratively, and then declaratively insert seed data into some of the tables?

Best regards,
Iannis


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 5:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
its a tool we would like to do (its on our todo/roadmap), but nothing solid yet. contributions welcome!

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 5:48 pm 
Newbie

Joined: Thu May 05, 2005 2:57 pm
Posts: 2
Hi Max,

Thank you for your reply.

Do you know of any tool that could provide me with this functionality outside of the Hibernate world? This is assuming that I use this tool for both schema creation and seed data insertion (Then hibernate will just use the created schema without creating it itself).

Best Regards,
Iannis


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 6:09 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
try dbjunit


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 10:20 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I use dbUnit for doing this type of work. Works very well for me.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 2:37 am 
Regular
Regular

Joined: Mon Apr 25, 2005 9:22 am
Posts: 62
Location: Bucharest/Romania
For generating large quantities of test data I use DataFactory from Quest. It is not able to generate your schema, but it is using reverse to read it and than you have lots of customizations for the data to be generated.


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

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.