}
else if (embeddedIdFields.size() == 1) {
final Map<Object, JavaSymbolName> jsonMethodNames = new LinkedHashMap<Object, JavaSymbolName>();
final MemberDetails fieldMemberDetails = getMemberDetails(embeddedIdFields
.get(0).getFieldType());
final MethodMetadata fromJsonMethod = MemberFindingUtils
.getMostConcreteMethodWithTag(fieldMemberDetails,
CustomDataJsonTags.FROM_JSON_METHOD);
if (fromJsonMethod != null) {
jsonMethodNames.put(CustomDataJsonTags.FROM_JSON_METHOD,
fromJsonMethod.getMethodName());
final MethodMetadata toJsonMethod = MemberFindingUtils
.getMostConcreteMethodWithTag(fieldMemberDetails,
CustomDataJsonTags.TO_JSON_METHOD);
if (toJsonMethod != null) {
jsonMethodNames.put(CustomDataJsonTags.TO_JSON_METHOD,
toJsonMethod.getMethodName());
compositePrimaryKeyTypes.put(embeddedIdFields.get(0)
.getFieldType(), jsonMethodNames);
}
}
}