Archive for November, 2005

Mac annoyances

Wednesday, November 23rd, 2005

I use a Macintosh (a PowerBook G4) as my development system at one of my jobs. For the most part I find MacOS X pretty smooth sailing, but there are a few niggling little things that irritate me on a daily basis.

Utility class for simple getter/setter JUnit testing

Tuesday, November 8th, 2005

Like many people, I use a coverage analysis tool to measure how much of my code is covered by my unit tests. (For my hobby projects, Coverlipse is my tool of choice; it’s free and reasonably capable.) And I always hate to see my coverage numbers drop just because I’m not bothering to test trivial getter/setter methods. So I wrote a helper class to test the getters and setters for me. Download it here and read on to learn how to use it.

Mixing EJB3 discriminators and the JOINED strategy: Hibernate falls short

Saturday, November 5th, 2005

Has anyone out there ever gotten a decent response from filing a Hibernate bug? I sure haven’t. Here’s my latest one, on the subject of support for JOINED entities with discriminator columns in Hibernate’s EJB3 implementation. I ran into a situation that was handled fine in other EJB3 implementations but not Hibernate. In his inimitable fashion, Gavin King claims it’s not really a problem “because Hibernate is better than these other inferior implementations.” But I think he’s wrong.

Dual booting no more

Wednesday, November 2nd, 2005

For a while I was dual-booting my desktop PC between Windows and Linux. I even figured out how to get Thunderbird and Firefox to share profiles between the two OSes. But I’m not using that setup any more.