Enumerating @NamedQuery within @NamedQueries

Introduction If you're a Java developer using JPA, chances are that you've declared one or more @NamedQuery objects on your entities. To declare a @NamedQuery on a class, the class must simply be annotated with the name of the query and its JPQL, such as: @Entity @NamedQuery(name = "findAllProjects", query...

Node Modules - What does require() do?

Introduction Node.js allows code to be written and stored in (preferrably) small modules. These modules can then be referenced from other modules to build up larger applications. What exactly is a module though, and how can code be accessed from within a module? Exporting functions Lets take a look at...

Testing Article Published At RebelLabs

RebelLabs have just published an article I've written titled, Top Testing Tips for Discriminating Java Developers. If you want to know more about testing, head on over to RebelLabs and read the article.

Creating a MongoDB Capped Collection in Java

In MongoDB, it’s possible to preserve the insertion order of documents into a collection in a circular fashion. These types of collections are called Capped Collections in MongoDB. The MongoDB documentation describes Capped Collections: “Capped collections are fixed-size collections that support high-throughput operations that insert, retrieve, and delete documents based...

NetBeans IDE Cookbook is released

I’m pleased to announce that my NetBeans 8 Cookbook has been released by Packt Publishing. You can get full details of the book on Packt’s web site at https://www.packtpub.com/application-development/netbeans-ide-8-cookbook The book contains 12 chapters each consisting of a number of recipes detailing how to perform different types of tasks within...