Example showing how to create a custom UserType representing the PostgreSQL array of integers data type for use with Java 7 and Hibernate 4.1