Category Archives: java

Annoying default SVN client in Subversive

Subversive is one of the two Subversion plugins for Eclipse (the other is, of course, Subclipse). At each installation of Eclipse, I try to switch from one to the other. Today, I’ve installed Eclipse 3.3RC1 along with Subversive 1.1.2. When … Continue reading

Posted in eclipse, java, subversion | Comments Off on Annoying default SVN client in Subversive

How to run XFire 1.x with Spring 2.x and Maven 2.x

In version 1.2.5 of XFire, a module called xfire-spring is necessary to run it together with , well, Spring. The issue is that the POM file for it is designed to run with Spring 1.2.x.

Posted in java, maven, spring, webservices, xfire | 6 Comments

Limitations when using DbUnit in multi-schema environment

DbUnit has a useful feature when using multiple schemas. After setting a property called http://www.dbunit.org/features/qualifiedTableNames, DbUnit will always refer to a fully qualified table name, using the schema in prefix, as expected. However, it has the side-effect that the schema … Continue reading

Posted in java, test | 1 Comment

Change signature of interface methods in implementations

Every once in a while, I learn a new fact that reminds me to stay humble with my knowledge of Java.

Posted in java | 3 Comments

Maven Surefire 2.3 released with support for JUnit 4

Surefire 2.3 for Maven has been released March 1st. No big announcements, just a post on the maven mailing list. Still, it is a big deal for me, as I can at last run my JUnit 4 tests with Maven.

Posted in java, maven, test | 3 Comments

Gienah: inject Spring dependencies in your JUnit 4 tests

I wanted a way of using my test with dependencies coming from my Spring definition.

Posted in java, spring, test | 6 Comments

YAGNI — You’re Aren’t Gonna Need It

A couple of weeks ago, I started working on the objects that needed to be mapped onto the database. As I didn’t know what to do with each of them, I tried to keep things simple by mapping a foreign … Continue reading

Posted in agile, java | 2 Comments

p6spy, dbUnit and maven

p6spy is a JDBC proxy that will log the SQL statements passed to a database. It is a relatively old project (last release is from 2003 but I only heard about it today, as I was looking for a way … Continue reading

Posted in java, maven, test | 2 Comments

Test Driven Design and Data Access Layer

I am currently writing the Data Access Layer of a Java project using Hibernate and I want to apply TDD on my work. The part that is concerned with the database is the mapping of objects on the database schema, … Continue reading

Posted in hibernate, java, tdd, test | 3 Comments

Changing maven local repository

This is something that is not well documented on the web, though it is quite clearly in the default settings.xml file provided with the default Maven installation. The default repository used by Maven 2 to store the various artifacts is … Continue reading

Posted in java, maven | 23 Comments

Hibernate: so, the identifier field *is* mandatory after all!

Is it obvious to everyone that an identifier is mandatory in Hibernate? I actually thought that Hibernate generated some kind of internal identifier for classes that do not specify one. The documentation says: saveOrUpdate() does the following: […] if the … Continue reading

Posted in hibernate, java | Comments Off on Hibernate: so, the identifier field *is* mandatory after all!

Configuring Cobertura in Maven 2

After many spurious error messages, I finally managed to make it work. Be warned that the information on the official Cobertura Maven plugin page, the informations are not exactly correct. Below, you’ll find in bold the fixes. The “Basic Cobertura … Continue reading

Posted in java, maven, test | 6 Comments

Eclipse-Subversion Integration: Secrets Wars

Did you know there were 2 Eclipse plugins for Subversion? Neither did I, until this morning. The leader is still Subclipse. Runner-up is Subversive. Being a credible alternative when it was released, mildly insulting words were exchanged; the Subversive team … Continue reading

Posted in eclipse, java, subversion | 5 Comments

Format On Save Plugin For Eclipse

I’m writing this post as a future reminder for myself… This plugin is damn hard to find when you are looking for it. All it does is automatically format and organize import statements in your Java classes each time you … Continue reading

Posted in eclipse, java | 2 Comments

Make decisions at the last responsible moment

In Lean Software Development: An Agile Toolkit for Software Development Managers, Mary & Tom Poppendieck mention “Make decisions at the last responsible moment” as one of the 7 rules. I’m happy to report applying it in my current project. Two … Continue reading

Posted in agile, java, lean software development | Comments Off on Make decisions at the last responsible moment