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 ...
The Groovy code that follows uses this technique to read the source XML and then writes out a 100% compilable Java enum called AlbumsEnum.java. The Groovy script is shown next. #!/usr/bin/env groovy / ...
Community driven content discussing all aspects of software development from DevOps to design patterns. Just how hard is it to perform a JPA or Hibernate enum mapping with either annotations or a ...
I learned a lot from Art Boyd, the first boss I had as a programmer -- sometimes at loud volumes, I admit, but always stuff worth learning. At one point, for example, he called me into his office to ...