Update Specification.java

change the hibernate inheritance behavior