Top Description Fields Constructors Methods
org.hibernate.metamodel.internal

public Class EntityInstantiatorDynamicMap

extends AbstractDynamicMapInstantiator
implements EntityInstantiator
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.spi.EntityInstantiator, org.hibernate.metamodel.spi.Instantiator
Imports
java.util.HashSet, .Iterator, .Map, .Set, org.hibernate.EntityNameResolver, .HibernateException, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.mapping.PersistentClass, org.hibernate.metamodel.spi.EntityInstantiator

Support for instantiating entity values as dynamic-map representation
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final EntityNameResolver
private final Set<String>
Inherited from org.hibernate.metamodel.internal.AbstractDynamicMapInstantiator:
TYPE_KEY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
public Object
instantiate(SessionFactoryImplementor sessionFactory)

Implements org.hibernate.metamodel.spi.EntityInstantiator.instantiate.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Create an instance of managed entity
private boolean
protected boolean
Inherited from org.hibernate.metamodel.internal.AbstractDynamicMapInstantiator:
generateDataMapgetRoleNameisInstanceisSameClass

Field Detail

ENTITY_NAME_RESOLVERback to summary
public static final EntityNameResolver ENTITY_NAME_RESOLVER
entityRoleNamesback to summary
private final Set<String> entityRoleNames

Constructor Detail

EntityInstantiatorDynamicMapback to summary
public EntityInstantiatorDynamicMap(PersistentClass bootDescriptor)

Method Detail

extractEmbeddedEntityNameback to summary
public static String extractEmbeddedEntityName(Map<?, ?> entity)
instantiateback to summary
public Object instantiate(SessionFactoryImplementor sessionFactory)

Implements org.hibernate.metamodel.spi.EntityInstantiator.instantiate.

Doc from org.hibernate.metamodel.spi.EntityInstantiator.instantiate.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Create an instance of managed entity

Annotations
@Override
isPartOfHierarchyback to summary
private boolean isPartOfHierarchy(String type)
isSameRoleback to summary
protected boolean isSameRole(String type)

Overrides org.hibernate.metamodel.internal.AbstractDynamicMapInstantiator.isSameRole.

Annotations
@Override