-->
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.  [ 5 posts ] 
Author Message
 Post subject: TDD and Hibernate
PostPosted: Fri Dec 10, 2004 2:13 pm 
Newbie

Joined: Thu Dec 09, 2004 12:51 pm
Posts: 7
Location: Boston, MA
I've caught the TDD (Test Driven Development) bug. TDD has been very helpful for me in adding new functionality to legacy applications. I'm now facing the prospect of a "from scratch" application where neither the data nor object model is fleshed out.

Left to my own devices, I'd probably do a full specification of the data model before starting out and then use TDD to inplement the features and slowly grow the needed object model. However thats not really following TDD. I'm still learning Hibernate, but it looks like it, and its supporting tools, should support a fairly lean process for growing both the data and object model incrementatly.

Does anyone have any advice or experiences to share in this arena?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 23, 2004 1:28 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
TDD is great in a top-down apporach

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Re: TDD and Hibernate
PostPosted: Fri Dec 24, 2004 9:54 am 
Contributor
Contributor

Joined: Thu Nov 06, 2003 9:49 pm
Posts: 104
Location: New York, NY
nielsene wrote:
I've caught the TDD (Test Driven Development) bug. TDD has been very helpful for me in adding new functionality to legacy applications. I'm now facing the prospect of a "from scratch" application where neither the data nor object model is fleshed out.

Left to my own devices, I'd probably do a full specification of the data model before starting out and then use TDD to inplement the features and slowly grow the needed object model. However thats not really following TDD. I'm still learning Hibernate, but it looks like it, and its supporting tools, should support a fairly lean process for growing both the data and object model incrementatly.

Does anyone have any advice or experiences to share in this arena?


Hibernate, XDoclet, and HSQLDB can provide a very nice standalone test platform for developing mapped objects, mappings, and data access objects. I've used this successfully to do a form of TDD in my current project at work. The side benefit is that there are unit tests for the DAOs that are standalone (i.e. they don't require an app server to be running).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 12:26 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I do use HSQLDB too until I play with Tx at the EJB level. It is a huge time saver.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 28, 2004 10:58 am 
Newbie

Joined: Thu Dec 09, 2004 12:51 pm
Posts: 7
Location: Boston, MA
Thanks for the pointers, once my current frustration with Java cools down a little I'll give those tools a try. (Frustration isn't due to Hibernate... just problems getting different tools/IDEs/packages to work together nicely)

Eric


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.