If both eclipselink and hibernate-validator exist on classpath, then com.github.kuros.random.jpa.metamodel.AttributeProviderFactory will choose HibernateProvider because hibernate-validator contains org.hibernate.Version class.
I would suggest to reverse checking logic - check for eclipselink first.
If both eclipselink and hibernate-validator exist on classpath, then com.github.kuros.random.jpa.metamodel.AttributeProviderFactory will choose HibernateProvider because hibernate-validator contains org.hibernate.Version class. I would suggest to reverse checking logic - check for eclipselink first.