org.hibernate.annotations.common.reflection.java.JavaXMember Java Examples
The following examples show how to use
org.hibernate.annotations.common.reflection.java.JavaXMember.
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: JsonTypeDescriptor.java From JuniperBot with GNU General Public License v3.0 | 5 votes |
@Override @SuppressWarnings("deprecation") public void setParameterValues(Properties parameters) { jsonObjectClass = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); try { Field typeField = JavaXMember.class.getDeclaredField("type"); if (!typeField.isAccessible()) { typeField.setAccessible(true); } type = (Type) typeField.get(parameters.get(XPROPERTY)); } catch (IllegalAccessException | NoSuchFieldException e) { throw new RuntimeException(e); } }
Example #2
Source File: PostgreSQLGuavaRangeType.java From hibernate-types with Apache License 2.0 | 5 votes |
@Override public void setParameterValues(Properties parameters) { final XProperty xProperty = (XProperty) parameters.get(DynamicParameterizedType.XPROPERTY); if (xProperty instanceof JavaXMember) { type = ReflectionUtils.invokeGetter(xProperty, "javaType"); } else { type = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); } }
Example #3
Source File: PostgreSQLRangeType.java From hibernate-types with Apache License 2.0 | 5 votes |
@Override public void setParameterValues(Properties parameters) { final XProperty xProperty = (XProperty) parameters.get(DynamicParameterizedType.XPROPERTY); if (xProperty instanceof JavaXMember) { type = ReflectionUtils.invokeGetter(xProperty, "javaType"); } else { type = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); } }
Example #4
Source File: JsonTypeDescriptor.java From hibernate-types with Apache License 2.0 | 5 votes |
@Override public void setParameterValues(Properties parameters) { final XProperty xProperty = (XProperty) parameters.get(DynamicParameterizedType.XPROPERTY); if (xProperty instanceof JavaXMember) { type = ReflectionUtils.invokeGetter(xProperty, "javaType"); } else { type = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); } }
Example #5
Source File: PostgreSQLTSVectorTypeDescriptor.java From hibernate-types with Apache License 2.0 | 5 votes |
@Override public void setParameterValues(Properties parameters) { final XProperty xProperty = (XProperty) parameters.get(DynamicParameterizedType.XPROPERTY); if (xProperty instanceof JavaXMember) { type = ReflectionUtils.invokeGetter(xProperty, "javaType"); } else { type = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); } }
Example #6
Source File: PostgreSQLGuavaRangeType.java From hibernate-types with Apache License 2.0 | 5 votes |
@Override public void setParameterValues(Properties parameters) { final XProperty xProperty = (XProperty) parameters.get(DynamicParameterizedType.XPROPERTY); if (xProperty instanceof JavaXMember) { type = ReflectionUtils.invokeGetter(xProperty, "javaType"); } else { type = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); } }
Example #7
Source File: PostgreSQLRangeType.java From hibernate-types with Apache License 2.0 | 5 votes |
@Override public void setParameterValues(Properties parameters) { final XProperty xProperty = (XProperty) parameters.get(DynamicParameterizedType.XPROPERTY); if (xProperty instanceof JavaXMember) { type = ReflectionUtils.invokeGetter(xProperty, "javaType"); } else { type = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); } }
Example #8
Source File: JsonTypeDescriptor.java From hibernate-types with Apache License 2.0 | 5 votes |
@Override public void setParameterValues(Properties parameters) { final XProperty xProperty = (XProperty) parameters.get(DynamicParameterizedType.XPROPERTY); if (xProperty instanceof JavaXMember) { type = ReflectionUtils.invokeGetter(xProperty, "javaType"); } else { type = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); } }
Example #9
Source File: PostgreSQLGuavaRangeType.java From hibernate-types with Apache License 2.0 | 5 votes |
@Override public void setParameterValues(Properties parameters) { final XProperty xProperty = (XProperty) parameters.get(DynamicParameterizedType.XPROPERTY); if (xProperty instanceof JavaXMember) { type = ReflectionUtils.invokeGetter(xProperty, "javaType"); } else { type = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); } }
Example #10
Source File: PostgreSQLRangeType.java From hibernate-types with Apache License 2.0 | 5 votes |
@Override public void setParameterValues(Properties parameters) { final XProperty xProperty = (XProperty) parameters.get(DynamicParameterizedType.XPROPERTY); if (xProperty instanceof JavaXMember) { type = ReflectionUtils.invokeGetter(xProperty, "javaType"); } else { type = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); } }
Example #11
Source File: JsonTypeDescriptor.java From hibernate-types with Apache License 2.0 | 5 votes |
@Override public void setParameterValues(Properties parameters) { final XProperty xProperty = (XProperty) parameters.get(DynamicParameterizedType.XPROPERTY); if (xProperty instanceof JavaXMember) { type = ReflectionUtils.invokeGetter(xProperty, "javaType"); } else { type = ((ParameterType) parameters.get(PARAMETER_TYPE)).getReturnedClass(); } }