Tag Archives: java 5

Why you should not map Java 5 enums with hibernate

Back in this post, I gave some pretty detailed instructions on how to map a Java 5 enum to a database table using Hibernate. The domain data that was represented in these mappings were not user-editable. They were something like types or statuses, a part of the logic of the application. If [...]


Posted in Uncategorized | Also tagged , , | 2 Comments

Mapping Java 5 enums with Hibernate

Hibernate is used to map java objects to a relational database. Ideally, you would like your java object model to be as object-oriented as possible. It is also nice to be able to use features like java 5 enums while coding the object model. In this tutorial, I’ll share with you how [...]


Posted in Uncategorized | Also tagged , , , | 23 Comments

Changing path and environment in Java ProcessBuilder

The new Java ProcessBuilder in 1.5 is very nice. But there are a few unexpected issues that I ran into while attempted to create an executable-wrapping framework with it.
The first and most important issue is this: Changes to the Path environment variable are not reflected until a new process is created and running. [...]


Posted in Uncategorized | Also tagged | 1 Comment
Check out the latest GroovyMag to see an interview with me about the 1.1 release of GrailsUI: