Selecting a Java Code Generator – update 3: Picked Grails instead

My previous attempts to find a code generator that worked for me led me nowhere. One of my collegues at work mentioned Grails, a framework based on Groovy, a scripting language close to Java in syntax and runs on a JVM. Grails is ‘Groovy on Rails’, a Groovy implementation of Ruby on Rails.

Ok, now we’re talking. I had a hard time picking up Ruby On Rails because I couldn’t get my head around the Ruby syntax, but I can see the benefits on the RoR approach.

Grails gets me to a place I’m comfortable with, and a language I can work with – I can generate my CRUD application based on my Entities and then take it from there. This is looking good. So far I have generated just a small test app to see how it hangs together, and have modified some of the generated .gsp pages – this is looking very promising so far.

I have to say I am pretty excited about Grails. I have a small project for a client to build an online store, so I’m going to be investigating building it with Grails and will see how far I get. Here’s my first post about some MySQL issues, but now I’ve resolved those I’m on the way.

Simplifying JDBC coding with Spring JDBC

If you are developing an app that replies on pure JDBC as it’s data access mechanism, consider looking at the JDBC support in the Spring Framework to help you out.

The Spring JDBC support greatly simlifies JDBC development by introducing a template based approach which encapsulates the majority of the coding you normally have to do by hand with JDBC. For examples and a comparision between raw JDBC and the Spring approach, look at this article on the java.net site.

No HDMI output on low-end PS3 and XBox360 HD-DVD drive – movies will default to lower resolution

This is an interesting point. Both PS3 versions, the $499 20GB version and the $599 60GB version will include the new Blu-Ray DVD drive, which many buyers will be looking at as a cheap way to get one of the first Blu-Ray players for their home, without paying a hefty $1000 price tag for a standalone player (similar to the PS2 approach when it first shipped with a DVD player).

However, only the $599 version will include an HDMI output, which is what the industry has agreed on as the standard output to a HD display to display the content in the highest resolution possible. The new add-on HD-DVD drive for the XBox360 also has the same issue – no HDMI output.

This is important, as this article on the Register notes, because without the HDMI output there is no HDCP copy protection, and therefore the output from the hidef disks will default to a lower resolution output. Something to be aware of…