These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM PropertyAccessor class.
return PropertyAccessorFactory.getDynamicMapPropertyAccessor(); } protected Getter buildGetter(Component component, Property prop) { return buildPropertyAccessor(prop).getGetter( null, prop.getName() ); } protected Setter buildSetter(Component component, Property prop) { return buildPropertyAccessor(prop).getSetter( null, prop.getName() ); } }
catch ( HibernateException he ) { LOG.unableToCreateProxyFactory(getEntityName(), he); pf = null; } return pf; } private PropertyAccessor buildPropertyAccessor(AttributeBinding mappedProperty) { // TODO: fix when backrefs are working in new metamodel //if ( mappedProperty.isBackRef() ) { // return mappedProperty.getPropertyAccessor( null ); //} //else { return PropertyAccessorFactory.getDynamicMapPropertyAccessor(); //} } /** * {@inheritDoc} */