That's going to depend on which "bootstrap" they use. JPA defines 2 which
it terms "SE" and "EE". Not sure this will work in all EE bootstrap
environments, but you have:
PersistenceProviderResolver resolver =
PersistenceProviderResolverHolder.getPersistenceProviderResolver();
List providers
On Thu, Apr 25, 2019 at 8:05 PM Steve Ebersole wrote:
> EMF + Metamodel are standard JPA contracts:
>
>
> try {
> emf.getMetamodel().managedType( theClass );
> }
> catch ( IllegalArgumentException e ) {
> // JPA defined exception if the passed class is not a managed type
> }
>
> Agai
EMF + Metamodel are standard JPA contracts:
try {
emf.getMetamodel().managedType( theClass );
}
catch ( IllegalArgumentException e ) {
// JPA defined exception if the passed class is not a managed type
}
Again, that will (should) work on any provider
On Thu, Apr 25, 2019 at 1:0
Hi,
In Hibernate Validator, we have a TraversableResolver which avoids to
validate the uninitialized properties of an entity.
This is done in
https://github.com/hibernate/hibernate-validator/blob/master/engine/src/main/java/org/hibernate/validator/internal/engine/resolver/JPATraversableResolver.j