if (attributeMetaDesc.isPersistent()) {
DataType dataType = attributeMetaDesc.getDataType();
if (dataType instanceof InverseModelRefType) {
if (classDeclaration
.equals(fieldDeclaration.getDeclaringType())) {
throw new ValidationException(
MessageCode.SLIM3GEN1035,
env,
fieldDeclaration.getPosition());
}
throw new ValidationException(
MessageCode.SLIM3GEN1036,
env,
classDeclaration.getPosition(),
fieldDeclaration.getSimpleName(),
fieldDeclaration.getDeclaringType().getQualifiedName());