Primitive wrapper types like Boolean and Integer are legal in service definition.
But when any of the primitive wrappers are used as types for columns in a portlet or a web plugin's service, read fails with no errors and write fails with hibernate "MappingException: unknown entity".
This is because the type is not generated in the hbm mapping file when type is not primitive. This causes Hibernate to use reflection which fails because the hibernate/portal classloader does not have the portlet's entity class.
So type needs to be generated even for primitive wrappers.