kuros / random-jpa

Create random test data for JPA/Hibernate entities.
GNU General Public License v3.0
26 stars 4 forks source link

Incorrect provider is set when using hibernate-validator #33

Closed iceberk closed 6 years ago

iceberk commented 6 years ago

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.

kuros commented 6 years ago

Fix provided with v0.6.5