Customized Mapping and Basic Querying in Java Hibernate