com.sap.cloud.sdk.service.csn2jpa.cds.model.CdsCardinality 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;
public class CdsCardinality {
public static final CdsCardinality ONE_TO_ONE = new CdsCardinality("1", "0", "1");
public static final CdsCardinality MANY_TO_ONE = new CdsCardinality("*", "0", "1");
public static final CdsCardinality ONE_TO_MANY = new CdsCardinality("1", "0", "*");
private String sourceMax;
private String targetMin;
private String targetMax;
public CdsCardinality() {
// MANY TO ONE
this("*", "0", "1");
}
public CdsCardinality(String sourceMax, String targetMin, String targetMax) {
this.sourceMax = sourceMax;
this.targetMin = targetMin;
this.targetMax = targetMax;
}
public String getSourceMax() {
return sourceMax;
}
public void setSourceMax(String sourceMax) {
this.sourceMax = sourceMax;
}
public String getTargetMax() {
return targetMax;
}
public void setTargetMax(String targetMax) {
this.targetMax = targetMax;
}
public String getTargetMin() {
return targetMin;
}
public void setTargetMin(String targetMin) {
this.targetMin = targetMin;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy