How to ignore accents (diacritics) in a JPA query?
This is a work in progress. Please feel free to contribute in the comments. In what follows, I’ll talk about JPA, but it applies equally to native Hibernate queries (Criterion or HQL), and even partly...
View ArticleOh what a tangled web, or, Maven dependency management
I was at a presentation last year by Arnaud Heritier, of the Maven core team, who advised the following best practices for dependency management (slide 23 in the presentation):Define all dependencies...
View ArticleMaven profiles: don’t get carried away
NB Superseded by this post (rewritten and improved).A Maven profile is a sub-set of POM declarations that you can activate or disactivate according to some condition. One way is to simply launch Maven...
View ArticleAutogenerated comments rant
Let me clear up potential confusion right at the start. This rant is not auto-generated. It is entirely hand-crafted. Auto-generation of comments is its object. What I have to say about this...
View ArticleMaven profile best practices
(A reworking of an earlier post, that I posted on DZone last month. I thought I should keep a copy of it on my own blog.)Maven profiles, like chainsaws, are a valuable tool, with whose power you can...
View ArticleThe Joy of DBUnit
I like DBUnit. Well, I dislike using it, but that’s because I dislike writing persistence tests. I’d hate them a lot more without it.I like it not only because it turns a dreaded chore into a mildly...
View ArticleUnit testing fundamentals
This article describes the principles of unit testing, rather than the technical details. It’s aimed at beginners. Experienced unit-testers will get little from it, except perhaps the pleasure of...
View ArticleSolve foreign-key problems in DBUnit test data
If you create small per-test datasets, as DBUnit advises, you’ll get intermittent build failures due to foreign-key violations. This post explains (1) why this happens, (2) why small per-test datasets...
View ArticleDevoxx France roundup
The first French edition of Devoxx was, first of all, a resounding success for the organisers: sold out with 1200 participants, I think we can be confident that there will be a second edition. It was...
View Article
More Pages to Explore .....