Monthly Archives: January 2011

Showing unused TestNG tests

We use TestNG for our system tests. One of the slight problems is that if a new test is written, but not added to the testng.xml file, it won’t be run. I like to monitor our testing progress, so I … Continue reading

Posted in Testing | Tagged | 1 Comment

Hibernate aliases

My colleague Raj was recently updating a Hibernate criteria query which made use of aliases. He wanted to add a criterion that a value in a linked table must be null, so the most obvious change to make was to … Continue reading

Posted in Hibernate | Tagged | 1 Comment

Cool Groovy features 3 – ConfigSlurper

In Java configuration properties can only be key-value pairs e.g. db_user=”admin” db_password=”letmein” Wouldn’t it be nice to be able to group configuration properties? This is exactly what you can do in Groovy using the ConfigSlurper class. It allows you to … Continue reading

Posted in Groovy | Tagged | Leave a comment

Using group by without an aggregate function

It is interesting to find that in MySQL, you can write the following: select * from orders o join order_tender ot on ot.order_id = group by This doesn’t really make sense, since the purpose of “group by” is … Continue reading

Posted in MySQL | Tagged | Leave a comment

Coffeescript – improved javascript

An interesting attempt to create a more powerful syntax for javascript:  

Posted in Javascript | Tagged | Leave a comment

Groovy – real life example

In my job we often have spreadsheets of data that we want to quickly turn into SQL scripts. (Yes, I know there are plenty of ways of importing spreadsheets into databases, but our DBAs want SQL scripts!) This is fairly … Continue reading

Posted in Groovy | Tagged | Leave a comment

Spring MVC versus Struts

This question is often asked, but tends to be answered by people who have a strong allegiance to Spring and tend to give a massive list of advantages, which often boil down to a much smaller list of actual advantages. … Continue reading

Posted in Spring | Tagged | Leave a comment