Groovy Annotations

I have been hammering (nicely) Guillaume for a long time now to get Annotations support in Groovy.Thanks to Alexandru Popescu, this is now an official work in progress, and one that progress well :-) I am thrilled by the possibilities to combine JavaEE (or any modern annotation based framework) and Groovy. If you wondered about … [...]

To copy a file in …

… Javaprivate static void copyFile(File srcFile, File destFile) throws IOException { FileInputStream is = null; FileOutputStream os = null; try { is = new FileInputStream(srcFile); FileChannel iChannel = is.getChannel(); … [...]

ActiveRecord pattern, so what?

The Active Record pattern has a lot of publicity recently thanks to the Ruby On Rails and Grails wave. A definition could be: an object that encapsulates both data and behavior (ie a database row and it’s data access logic).A bit of historyI was asked recently my thoughts about this pattern. First of all, … [...]