Downgrading hibernate and adding Java 7 property