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”

Deleting code gives me a warm fuzzy feeling…

I love it when I get to delete code. Deleting code, particularly dead code, is such a wonderfully therapeutic exercise. You should try it some time.

Continue reading “Deleting code gives me a warm fuzzy feeling…”

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”

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”

The Dark side of the Force is a pathway to many abilities that some consider unnatural…

I’m shocked at myself… I’m downloading the Visual Studio C# beta! And I want to use it! Argh!

(Writing utilities, with GUIs, that manipulate objects via COM is not a task Java is intended for, I’m afraid…)

Continue reading “The Dark side of the Force is a pathway to many abilities that some consider unnatural…”