JBIDE-13853 jbosstools-hibernate has compilation errors under Kepler M6

fix all compilation errors under Eclipse Kepler M6 release