Java-persistence replaced by hibernate lib.