Tweak java configuration for jpa usage