Gist a github feature for sharing language specific formatted code


Finally after months and months I’ve found a neat, clear, formatted and even version controlled way of sharing code snippets. Gist allows you to have language specific formatted code and embed it in any HMTL page or in a free blog like this one. Here below is an example! This file contains bidirectional Unicode text that … Continue reading Gist a github feature for sharing language specific formatted code

REST Payload API Versioning


In the last few days my focus has been on NoSQL DB(s) and REST services. Points I’m more interested into are: Payload API versioning Platform independent Payload serialization and / or compression I found on stackoverflow a very interesting debate on the versioning aspect. Although exposing the API version in the URI gives great readability and control, I’m … Continue reading REST Payload API Versioning

Quick HSQLDB How To


HSQLDB is a 100% pure Java SQL database. I often make use of it when I’m working on proof of concepts or tests. You can download it at http://sourceforge.net/projects/hsqldb/files/hsqldb/. In order to run it, it’s required to have a JVM installed and the JAVA_HOME environmental variable pointing to it. I recommend to create a folder in … Continue reading Quick HSQLDB How To

Mapping a many-to-many join table with extra column using JPA


Intro It is not straightforward to realise a many-to-many association with JPA when in the join table there is at least an extra column. In this small tutorial I’m going to show how to design entity objects that will handle the many-to-many relation and which annotations are needed in order to fix a redundancy that … Continue reading Mapping a many-to-many join table with extra column using JPA