News

A simple typesafe enum declaration in Java code looks like its counterparts in the C, C++, and C# languages: enum Direction { NORTH, WEST, EAST, SOUTH } ...
Although it is part of the java.util.concurrent package, the TimeUnit enum is useful in many contexts outside of concurrency.In this post, I look at how the TimeUnit enum can be used even in code ...
JPA and Hibernate enum mapping. The Java enum, introduced in Java 5, will map to the underlying database without any intervention. The JPA framework, be it Hibernate or Toplink or DataNucleus, will ...