Angular-datatables with server side pagination using Spring Data

We are using angular-datatables in a project. So far, we just returned all entities from the server’s REST controller (Using Spring Boot and Spring Data on the server side). I wanted to see how I could implement server side pagination to avoid returning all records at once. I was lucky to find spring-data-jpa-datatables which makes…

Read-only EntryProcessors with Hazelcast

This post is a follow-up on my post EntryProcessors and EntryBackupProcessors with Hazelcast. In the comments, Peter Veentjer from Hazelcast gave me the idea to use an EntryProcessor to read part of the data. I will show you below how to best do this. We start with a cache that has 10 User objects in…

Switching easily between Java JDKs on Mac OS X

I just came upon a neat little trick to easily switch what JDK you are using on the command line on Mac OS X (10.9.2 is the version I am using), courtesy of this AskDifferent answer. First, add the following aliases in ~/.profile file: alias setJdk6=’export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)’alias setJdk7=’export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)’alias setJdk8=’export JAVA_HOME=$(/usr/libexec/java_home…