The workaround with the hibernate.default_catalog does not work if you add the schema attribute to the @JoinTable annotation