Make hibernate an optional dependency