Skip to content

Commit

Permalink
HSEARCH-3667 handle only persistent classes associated with a pojo.
Browse files Browse the repository at this point in the history
Avoid to process no JPA entity tables like hibernate Envers audited tables.
  • Loading branch information
dcdh committed Aug 26, 2019
1 parent e9f5859 commit f100d08
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import org.hibernate.AssertionFailure;
Expand Down Expand Up @@ -56,7 +57,10 @@ public class HibernateOrmBootstrapIntrospector extends AbstractPojoHCAnnBootstra
public static HibernateOrmBootstrapIntrospector create(Metadata metadata,
ReflectionManager ormReflectionManager,
ConfigurationPropertySource propertySource) {
Collection<PersistentClass> persistentClasses = metadata.getEntityBindings();
Collection<PersistentClass> persistentClasses = metadata.getEntityBindings()
.stream()
.filter( PersistentClass::hasPojoRepresentation )
.collect( Collectors.toList() );
Map<Class<?>, HibernateOrmBasicTypeMetadata> typeMetadata = new HashMap<>();
collectPersistentTypes( typeMetadata, metadata.getEntityBindings() );
for ( PersistentClass persistentClass : persistentClasses ) {
Expand Down

0 comments on commit f100d08

Please sign in to comment.