JBIDE-17556: NPE when generating entities with hibernate 3.6, 4.0 and 4.3