fix for javax.persistence and javax.validation