All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.sdk.service.csn2jpa.cds.model.CdsCardinality Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
/*******************************************************************************
 * * © 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