@Override public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory) { return extractEmbeddedEntityName( (Map) entityInstance ); }
@Override protected ProxyFactory buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter) { ProxyFactory pf = new MapProxyFactory(); try { //TODO: design new lifecycle for ProxyFactory pf.postInstantiate( getEntityName(), null, null, null, null, null ); } catch (HibernateException he) { LOG.unableToCreateProxyFactory( getEntityName(), he ); pf = null; } return pf; }
@Override protected Getter buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity) { return buildPropertyAccess( mappedProperty ).getGetter(); }
/** * {@inheritDoc} */ @Override protected Getter buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity) { return buildPropertyAccessor(mappedProperty).getGetter( null, mappedProperty.getName() ); }
/** * {@inheritDoc} */ @Override protected Setter buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity) { return buildPropertyAccessor(mappedProperty).getSetter( null, mappedProperty.getName() ); }
@Override public String resolveEntityName(Object entity) { if ( !Map.class.isInstance( entity ) ) { return null; } final String entityName = extractEmbeddedEntityName( (Map) entity ); if ( entityName == null ) { throw new HibernateException( "Could not determine type of dynamic map entity" ); } return entityName; }
/** * {@inheritDoc} */ @Override protected ProxyFactory buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter) { ProxyFactory pf = new MapProxyFactory(); try { //TODO: design new lifecycle for ProxyFactory pf.postInstantiate( getEntityName(), null, null, null, null, null ); } catch ( HibernateException he ) { LOG.unableToCreateProxyFactory( getEntityName(), he ); pf = null; } return pf; }
/** * {@inheritDoc} */ @Override protected Setter buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity) { return buildPropertyAccessor(mappedProperty).getSetter( null, mappedProperty.getName() ); }
@Override protected Setter buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity) { return buildPropertyAccess( mappedProperty ).getSetter(); }
/** * {@inheritDoc} */ public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory) { return extractEmbeddedEntityName( ( Map ) entityInstance ); }
/** * {@inheritDoc} */ @Override protected ProxyFactory buildProxyFactory(EntityBinding mappingInfo, Getter idGetter, Setter idSetter) { ProxyFactory pf = new MapProxyFactory(); try { //TODO: design new lifecycle for ProxyFactory pf.postInstantiate( getEntityName(), null, null, null, null, null ); } catch ( HibernateException he ) { LOG.unableToCreateProxyFactory(getEntityName(), he); pf = null; } return pf; }
/** * {@inheritDoc} */ @Override protected Getter buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity) { return buildPropertyAccessor(mappedProperty).getGetter( null, mappedProperty.getName() ); }
/** * {@inheritDoc} */ public String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory) { return extractEmbeddedEntityName( ( Map ) entityInstance ); }
/** * {@inheritDoc} */ @Override protected ProxyFactory buildProxyFactory(EntityBinding mappingInfo, Getter idGetter, Setter idSetter) { ProxyFactory pf = new MapProxyFactory(); try { //TODO: design new lifecycle for ProxyFactory pf.postInstantiate( getEntityName(), null, null, null, null, null ); } catch ( HibernateException he ) { LOG.unableToCreateProxyFactory(getEntityName(), he); pf = null; } return pf; }
/** * {@inheritDoc} */ @Override protected Setter buildPropertySetter(AttributeBinding mappedProperty) { return buildPropertyAccessor( mappedProperty ).getSetter( null, mappedProperty.getAttribute().getName() ); }
/** * {@inheritDoc} */ public String resolveEntityName(Object entity) { if ( ! Map.class.isInstance( entity ) ) { return null; } final String entityName = extractEmbeddedEntityName( ( Map ) entity ); if ( entityName == null ) { throw new HibernateException( "Could not determine type of dynamic map entity" ); } return entityName; }
/** * {@inheritDoc} */ @Override protected ProxyFactory buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter) { ProxyFactory pf = new MapProxyFactory(); try { //TODO: design new lifecycle for ProxyFactory pf.postInstantiate( getEntityName(), null, null, null, null, null ); } catch ( HibernateException he ) { LOG.unableToCreateProxyFactory( getEntityName(), he ); pf = null; } return pf; }
/** * {@inheritDoc} */ @Override protected Setter buildPropertySetter(AttributeBinding mappedProperty) { return buildPropertyAccessor( mappedProperty ).getSetter( null, mappedProperty.getAttribute().getName() ); }
/** * {@inheritDoc} */ public String resolveEntityName(Object entity) { if ( ! Map.class.isInstance( entity ) ) { return null; } final String entityName = extractEmbeddedEntityName( ( Map ) entity ); if ( entityName == null ) { throw new HibernateException( "Could not determine type of dynamic map entity" ); } return entityName; }
/** * {@inheritDoc} */ @Override protected Getter buildPropertyGetter(AttributeBinding mappedProperty) { return buildPropertyAccessor( mappedProperty ).getGetter( null, mappedProperty.getAttribute().getName() ); }