Tag Archives: data

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

Unique ArrayList

Eric’s post about the LinkedHashSet got me thinking about some code I’ve recently written to provide an ArrayList that operates like a set. I wasn’t aware of the LinkedHashSet, but I think I implemented something with similar functionality called a UniqueArrayList. It looks very simple:

public class UniqueArrayList extends ArrayList {
[...]


Posted in Uncategorized | Also tagged , | Leave a comment
Check out the latest GroovyMag to see an interview with me about the 1.1 release of GrailsUI: