Differences in behaviour between Hibernate delete queries and the old way

In Hibernate 2, you could sort-of do a bulk delete via the Session interface. In Hibernate 3, they have true bulk deletes, ala Section 3.11 of the EJB 3 Persistence API. However, they have some significant differences which people migrating to the new functionality need to be aware of.

Continue reading “Differences in behaviour between Hibernate delete queries and the old way”

Upgrading to Hibernate 3 – a war story

I finally got a chance to try out upgrading to Hibernate 3 at work. It wasn’t the smoothest of rides, but I got there in the end.
Continue reading “Upgrading to Hibernate 3 – a war story”

How the new Hibernate bulk queries work

When I gave my talk on Monday I’d sort of hurried over the new bulk queries in Hibernate, largely because I didn’t have much luck finding doco on them.

Now I know how they work.

Continue reading “How the new Hibernate bulk queries work”

Granularity of types

Elizabeth Keogh has been writing a couple of articles on naming of interfaces. In the process, she’s highlighted a more important issue: granularity of types.
Continue reading “Granularity of types”

New features of Hibernate 3.0

I gave a talk at the AJUG-QLD tonight on the new features of Hibernate 3.0.
Here are the slides

Continue reading “New features of Hibernate 3.0”

Remember to read the errata!

I’d introduced a Hibernate user type into the code base a few days ago. I’d based it on an example in the (more or less) wonderful book Hibernate in Action Naturally, however, I’d copied the example with a bug in it!

Continue reading “Remember to read the errata!”

Comparing coffee with gemstones

There’s a couple of posts going around about another post comparing Ta-Da with Bla-Bla Look, folks, this isn’t comparing the two languages: this is comparing different coding styles, that strangely enough value different things!

Continue reading “Comparing coffee with gemstones”

Unnecessary dependencies are at least midly naughty

I really, really, shouldn’t bite, but… Cedric is asking about dependent test methods and if they are evil Well, they may not be evil, but they are at least mildly naughty.

Continue reading “Unnecessary dependencies are at least midly naughty”

Reducing the size of Checkstyle logs

If you use Checkstyle, especially as part of an automated build you may notice that the size of the log file can be a bit big.
I did, anyway, so I wrote a stylesheet to trim it down to size.

Continue reading “Reducing the size of Checkstyle logs”