/** * Gets `mappedBy` attribute value from JPA relationship annotation * * @param jpaAnnotation * @return */ private String getMappedByValue(AnnotationMetadata jpaAnnotation) { AnnotationAttributeValue<?> mappedByValue = jpaAnnotation.getAttribute(MAPPEDBY_ATTRIBUTE); if (mappedByValue == null) { return null; } return ((StringAttributeValue) mappedByValue).getValue(); }
String[] splittedByDot = StringUtils.split(field.getValue(), "."); StringBuffer propertyName = new StringBuffer(); for (int i = 0; i < splittedByDot.length; i++) { String pathName = entityVariableName.concat(".").concat(field.getValue()); projectionFieldNames.add(Pair.of(propertyName.toString(), pathName)); typesFieldMaps.put(projection, projectionFieldNames);
&& val instanceof StringAttributeValue) { final StringAttributeValue stringValue = (StringAttributeValue) val; result.add(stringValue.getValue()); } else if (fieldType.getComponentType().equals(JavaType.class) && val instanceof ClassAttributeValue) {
StringAttributeValue attributeValue = (StringAttributeValue) it.next(); findersToAdd.add(attributeValue); finderNames.add(attributeValue.getValue());
attributeValue = ((LongAttributeValue) value).getValue().toString() + "L"; } else if (value instanceof StringAttributeValue) { attributeValue = "\"" + ((StringAttributeValue) value).getValue() + "\""; } else if (value instanceof NestedAnnotationAttributeValue) { final AnnotationMetadata annotationMetadata =
StringAttributeValue attributeValue = it.next(); operationsToAdd.add(attributeValue); operationsNames.add(attributeValue.getValue());
while (iterator.hasNext()) { StringAttributeValue attributeValue = (StringAttributeValue) iterator.next(); String finderName = attributeValue.getValue();
final String castValue = ((StringAttributeValue) value).getValue(); final StringLiteralExpr convertedValue = new StringLiteralExpr(castValue.toString()); return new MemberValuePair(value.getName().getSymbolName(), convertedValue);
/** * Gets `mappedBy` attribute value from JPA relationship annotation * * @param jpaAnnotation * @return */ private String getMappedByValue(AnnotationMetadata jpaAnnotation) { AnnotationAttributeValue<?> mappedByValue = jpaAnnotation.getAttribute(MAPPEDBY_ATTRIBUTE); if (mappedByValue == null) { return null; } return ((StringAttributeValue) mappedByValue).getValue(); }
String[] splittedByDot = StringUtils.split(field.getValue(), "."); StringBuffer propertyName = new StringBuffer(); for (int i = 0; i < splittedByDot.length; i++) { String pathName = entityVariableName.concat(".").concat(field.getValue()); projectionFieldNames.add(Pair.of(propertyName.toString(), pathName)); typesFieldMaps.put(projection, projectionFieldNames);
.getValue()); if (ReportMetadata.isValidFormat(reportNameFormat[1])) { if (validReportNameFormats.containsKey(reportNameFormat[0])) {
StringUtils.isNotBlank(targetNamespace.getValue()), "You must define 'targetNamespace' annotation attribute in @GvNIXWebService in class: '" .concat(javaType.getFullyQualifiedTypeName()).concat( String targetNamespaceValue = targetNamespace.getValue(); Validate.isTrue( checkNamespaceFormat(targetNamespaceValue),
nameAttributeValue.getValue());
Validate.isInstanceOf(StringAttributeValue.class, obj, errMsg); final StringAttributeValue sv = (StringAttributeValue) obj; if (sv.getValue().equals(fieldName)) { alreadyAdded = true;
new JavaSymbolName(elementListName.getValue())));
"action"), ((StringAttributeValue) tmpAnnotationAttributeValue) .getValue());
((StringAttributeValue) annotation .getAttribute(new JavaSymbolName("xmlTypeName"))) .getValue()));
partNameAttributeValue = new StringAttributeValue( new JavaSymbolName("partName"), partNameAttributeValue.getValue());