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

org.eclipse.dirigible.components.odata.api.ODataAssociation Maven / Gradle / Ivy

There is a newer version: 10.6.37
Show newest version
/*
 * Copyright (c) 2023 SAP SE or an SAP affiliate company and Eclipse Dirigible contributors
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v20.html
 *
 * SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Eclipse Dirigible contributors
 * SPDX-License-Identifier: EPL-2.0
 */
package org.eclipse.dirigible.components.odata.api;

import java.util.HashMap;
import java.util.Map;

import com.google.gson.annotations.Expose;

/**
 * The Class ODataAssociationDefinition.
 */
public class ODataAssociation {

    /** The name. */
	@Expose
    private String name;

    /** The from. */
	@Expose
    private ODataAssociationEnd from;

    /** The to. */
	@Expose
    private ODataAssociationEnd to;

    /**
     * 

Define list of additional annotations for EntitySet element.

* For example: * <AssociationSet Name="someName" Association="someName" sap:creatable="true" sap:updatable="true" sap:deletable="true"> */ @Expose private Map annotationsAssociationSet = new HashMap<>(); /** * Gets the name. * * @return the name */ public String getName() { return name; } /** * Sets the name. * * @param name the new name */ public void setName(String name) { this.name = name; } /** * Gets the from. * * @return the from */ public ODataAssociationEnd getFrom() { return from; } /** * Sets the from. * * @param from the new from */ public void setFrom(ODataAssociationEnd from) { this.from = from; } /** * Gets the to. * * @return the to */ public ODataAssociationEnd getTo() { return to; } /** * Sets the to. * * @param to the new to */ public void setTo(ODataAssociationEnd to) { this.to = to; } /** * Gets the annotations association set. * * @return the annotations association set */ public Map getAnnotationsAssociationSet() { return annotationsAssociationSet; } /** * Sets the annotations association set. * * @param annotationsAssociationSet the annotations association set */ public void setAnnotationsAssociationSet(Map annotationsAssociationSet) { this.annotationsAssociationSet = annotationsAssociationSet; } /** * To string. * * @return the string */ @Override public String toString() { return "ODataAssociation [name=" + name + ", from=" + from + ", to=" + to + ", annotationsAssociationSet=" + annotationsAssociationSet + "]"; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy