-->
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: [best practices][test data]
PostPosted: Fri Jul 27, 2007 12:14 pm 
Newbie

Joined: Tue Jul 17, 2007 9:05 am
Posts: 9
Hi all,
I would be interested to know if someone found a "magic way" to load test data with Hibernate (or at least a good practice).

I am not speaking about thousands of records, just usual functional test data (may be 20 records per table).

Here is my problem : I wanted to adopt a very "object oriented" way of generating my test data. I wanted to :
1- read data inside Excel files our tester is very confortable with Excel)
2- create objects from those Excel files
3 - Persist data inside the database using Hibernate

At the beginning, when my database schema was small, it worked like a charm. But little by little, it became incredibly complicated, and I realized that solution was just not the right one (I had to take into account whether there was a cascade or not, the type of relation...).

Is there a solution that you would recommend ?


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.