Monthly Archives: February 2005

Persistence layer unit testing best practices

I've been doing some searching on best practices for unit testing the persistence layer with DBUnit and I'm interested in people's feedback on my policies or pointers to policies others have created. For example I've been thinking of making our … Continue reading

Posted in Java | Comments Off on Persistence layer unit testing best practices

Building one big fat jar file

I've been working on software that generates a very large XML feed for customers. My plan was to have it run by a cron job and regenerate the feed once a week. I wanted my project to produce one file … Continue reading

Posted in Java | 1 Comment

And the best MVC framework is….

Norm Deane is going to be pulling a Matt Raible by reimplementing the same software with all of the major MVC frameworks (Struts, Spring MVC, Webwork, Tapestry, and JSF). I'm excited to see his progress as he writes about it, … Continue reading

Posted in Java | Comments Off on And the best MVC framework is….

MySQL and not null is not good!

On a daily basis I continue to be unimpressed with MySQL when using MyISAM tables. Today I discovered that if you set a field to be non-nullable and then do an insert without specifying the field, MySQL happily completes the … Continue reading

Posted in Database | 2 Comments

Maven versus Ant

Almost every new web project starts with writing the Ant code to build a WAR. This build process is duplicated with some variance on every web application project I've ever worked on that uses Ant. We lift our noses when … Continue reading

Posted in Java | Comments Off on Maven versus Ant

Trails (Tapestry, Spring, XDoclet, and Hibernate) video

Chris has posted a 10 minute video strutting some of the nice features of developing with Trails (built on Ant, Tapestry, Spring, XDoclet, and Hibernate). This was inspired by the now famous Ruby on Rails video. In theory I like … Continue reading

Posted in Java | Comments Off on Trails (Tapestry, Spring, XDoclet, and Hibernate) video

Hibernate mapping one class to multiple databases

At work our data is state specific and for each state we have a lot of data. It was decided to create a separate database for each state in MySQL long before I joined the company and now we have … Continue reading

Posted in Java | 1 Comment