Java Code Examples for org.hibernate.mapping.Property#isBackRef()
The following examples show how to use
org.hibernate.mapping.Property#isBackRef() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DynamicMapEntityTuplizer.java From lams with GNU General Public License v2.0 | 5 votes |
private PropertyAccess buildPropertyAccess(Property mappedProperty) { if ( mappedProperty.isBackRef() ) { return mappedProperty.getPropertyAccessStrategy( null ).buildPropertyAccess( null, mappedProperty.getName() ); } else { return PropertyAccessStrategyMapImpl.INSTANCE.buildPropertyAccess( null, mappedProperty.getName() ); } }
Example 2
Source File: DynamicMapEntityTuplizer.java From cacheonix-core with GNU Lesser General Public License v2.1 | 5 votes |
private PropertyAccessor buildPropertyAccessor(Property mappedProperty) { if ( mappedProperty.isBackRef() ) { return mappedProperty.getPropertyAccessor(null); } else { return PropertyAccessorFactory.getDynamicMapPropertyAccessor(); } }
Example 3
Source File: Dom4jEntityTuplizer.java From cacheonix-core with GNU Lesser General Public License v2.1 | 5 votes |
private PropertyAccessor buildPropertyAccessor(Property mappedProperty) { if ( mappedProperty.isBackRef() ) { return mappedProperty.getPropertyAccessor(null); } else { return PropertyAccessorFactory.getDom4jPropertyAccessor( mappedProperty.getNodeName(), mappedProperty.getType(), getEntityMetamodel().getSessionFactory() ); } }