com.sap.cloud.sdk.service.csn2jpa.cds.model.CdsManagedAssociation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of csn-reader Show documentation
Show all versions of csn-reader Show documentation
API for reading CDS models in CSN format
/*******************************************************************************
* * © 2018 SAP SE or an SAP affiliate company. All rights reserved. *
******************************************************************************/
package com.sap.cloud.sdk.service.csn2jpa.cds.model;
import java.util.Collections;
import java.util.List;
import com.google.common.collect.Lists;
public class CdsManagedAssociation extends CdsAssociation {
private List foreignKeys = Lists.newArrayList();
public CdsManagedAssociation() {
}
public CdsManagedAssociation(String name) {
super(name);
}
public List getForeignKeys() {
return Collections.unmodifiableList(foreignKeys);
}
public void setForeignKeys(List foreignKeys) {
this.foreignKeys = Lists.newArrayList(foreignKeys);
}
@Override
public void accept(CdsVisitor visitor) {
foreignKeys.forEach(fk -> fk.accept(visitor));
visitor.visit(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy