removed use of user types for easier implementation and hibernate 4 support