public static Class reflectedPropertyClass( MetadataBuildingContext buildingContext, Class attributeOwnerClass, final String attributeName) { return ReflectHelper.reflectedPropertyClass( attributeOwnerClass, attributeName ); } }
@Override public void setTypeUsingReflection(String className, String propertyName) throws MappingException { if (referencedEntityName == null) { final ClassLoaderService cls = getMetadata().getMetadataBuildingOptions() .getServiceRegistry() .getService( ClassLoaderService.class ); referencedEntityName = ReflectHelper.reflectedPropertyClass( className, propertyName, cls ).getName(); } }
throw new MappingException( "Attribute types for a dynamic entity must be explicitly specified: " + propertyName ); typeName = ReflectHelper.reflectedPropertyClass( className, propertyName,
public static Class reflectedPropertyClass( Class attributeOwnerClass, final String attributeName) { return ReflectHelper.reflectedPropertyClass( attributeOwnerClass, attributeName ); } }
private static Class reflectedPropertyClass(String className, String propertyName) throws MappingException { if ( className == null ) return null; return ReflectHelper.reflectedPropertyClass( className, propertyName ); }
private static Class reflectedPropertyClass(String className, String propertyName) throws MappingException { if ( className == null ) return null; return ReflectHelper.reflectedPropertyClass( className, propertyName ); }
public void setTypeUsingReflection(String className, String propertyName) throws MappingException { if (referencedEntityName==null) { referencedEntityName = ReflectHelper.reflectedPropertyClass( className, propertyName ).getName(); } }
public void setTypeUsingReflection(String className, String propertyName) throws MappingException { if (referencedEntityName==null) { referencedEntityName = ReflectHelper.reflectedPropertyClass( className, propertyName ).getName(); } }
public void setTypeUsingReflection(String className, String propertyName) throws MappingException { if (typeName==null) { if (className==null) { throw new MappingException("you must specify types for a dynamic entity: " + propertyName); } typeName = ReflectHelper.reflectedPropertyClass(className, propertyName).getName(); } }
public void setTypeUsingReflection(String className, String propertyName) throws MappingException { if (typeName==null) { if (className==null) { throw new MappingException("you must specify types for a dynamic entity: " + propertyName); } typeName = ReflectHelper.reflectedPropertyClass(className, propertyName).getName(); } }
@Override public void setTypeUsingReflection(String className, String propertyName) throws MappingException { if (referencedEntityName == null) { final ClassLoaderService cls = getMetadataBuildingContext().getBootstrapContext() .getServiceRegistry() .getService( ClassLoaderService.class ); referencedEntityName = ReflectHelper.reflectedPropertyClass( className, propertyName, cls ).getName(); } }
@Override public void setTypeUsingReflection(String className, String propertyName) throws MappingException { // what to do here if ( typeName != null ) { // assume either (a) explicit type was specified or (b) determine was already performed return; } if ( className == null ) { throw new MappingException( "Attribute types for a dynamic entity must be explicitly specified: " + propertyName ); } typeName = ReflectHelper.reflectedPropertyClass( className, propertyName, getServiceRegistry().getService( ClassLoaderService.class ) ).getName(); // todo : to fully support isNationalized here we need do the process hinted at above // essentially, much of the logic from #buildAttributeConverterTypeAdapter wrt resolving // a (1) SqlTypeDescriptor, a (2) JavaTypeDescriptor and dynamically building a BasicType // combining them. }
final Class reflectedJavaType = ReflectHelper.reflectedPropertyClass( ownerName, propertyName,