News

An example of an SDK classes that make use of this feature is the TimeUnit enum (see my blog post on this). Another example is Guava’s CaseFormat enum (via its to (CaseFormat,String) method).
Most new Java developers quickly learn that they should generally compare Java Strings using String.equals(Object) rather than using == . This is emphasized and reinforced to new developers ...
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 ...