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

io.vertigo.planning.agenda.domain.Creneau Maven / Gradle / Ivy

The newest version!
/*
 * vertigo - application development platform
 *
 * Copyright (C) 2013-2024, Vertigo.io, [email protected]
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.vertigo.planning.agenda.domain;

import io.vertigo.core.lang.Generated;
import io.vertigo.datamodel.data.model.Entity;
import io.vertigo.datamodel.data.model.UID;
import io.vertigo.datamodel.data.stereotype.Field;
import io.vertigo.datamodel.data.util.DataModelUtil;
import io.vertigo.datastore.impl.entitystore.StoreVAccessor;

/**
 * This class is automatically generated.
 * DO NOT EDIT THIS FILE DIRECTLY.
 */
@Generated
public final class Creneau implements Entity {
	private static final long serialVersionUID = 1L;

	private Long creId;

	@io.vertigo.datamodel.data.stereotype.Association(
			name = "ACreneauTrancheHoraire",
			fkFieldName = "trhId",
			primaryDtDefinitionName = "DtTrancheHoraire",
			primaryIsNavigable = true,
			primaryRole = "TrancheHoraire",
			primaryLabel = "Tranche horaire",
			primaryMultiplicity = "1..1",
			foreignDtDefinitionName = "DtCreneau",
			foreignIsNavigable = false,
			foreignRole = "Creneau",
			foreignLabel = "Creneau",
			foreignMultiplicity = "0..*")
	private final StoreVAccessor trhIdAccessor = new StoreVAccessor<>(io.vertigo.planning.agenda.domain.TrancheHoraire.class, "TrancheHoraire");

	@io.vertigo.datamodel.data.stereotype.Association(
			name = "AReservationCreneauCreneau",
			fkFieldName = "recId",
			primaryDtDefinitionName = "DtReservationCreneau",
			primaryIsNavigable = true,
			primaryRole = "ReservationCreneau",
			primaryLabel = "Réservation",
			primaryMultiplicity = "0..1",
			foreignDtDefinitionName = "DtCreneau",
			foreignIsNavigable = false,
			foreignRole = "Creneau",
			foreignLabel = "Creneau",
			foreignMultiplicity = "0..*")
	private final StoreVAccessor recIdAccessor = new StoreVAccessor<>(io.vertigo.planning.agenda.domain.ReservationCreneau.class, "ReservationCreneau");

	/** {@inheritDoc} */
	@Override
	public UID getUID() {
		return UID.of(this);
	}
	
	/**
	 * Champ : ID.
	 * Récupère la valeur de la propriété 'Id'.
	 * @return Long creId Obligatoire
	 */
	@Field(smartType = "STyPId", type = "ID", cardinality = io.vertigo.core.lang.Cardinality.ONE, label = "Id")
	public Long getCreId() {
		return creId;
	}

	/**
	 * Champ : ID.
	 * Définit la valeur de la propriété 'Id'.
	 * @param creId Long Obligatoire
	 */
	public void setCreId(final Long creId) {
		this.creId = creId;
	}
	
	/**
	 * Champ : FOREIGN_KEY.
	 * Récupère la valeur de la propriété 'Tranche horaire'.
	 * @return Long trhId Obligatoire
	 */
	@io.vertigo.datamodel.data.stereotype.ForeignKey(smartType = "STyPId", label = "Tranche horaire", fkDefinition = "DtTrancheHoraire", cardinality = io.vertigo.core.lang.Cardinality.ONE )
	public Long getTrhId() {
		return (Long) trhIdAccessor.getId();
	}

	/**
	 * Champ : FOREIGN_KEY.
	 * Définit la valeur de la propriété 'Tranche horaire'.
	 * @param trhId Long Obligatoire
	 */
	public void setTrhId(final Long trhId) {
		trhIdAccessor.setId(trhId);
	}
	
	/**
	 * Champ : FOREIGN_KEY.
	 * Récupère la valeur de la propriété 'Réservation'.
	 * @return Long recId
	 */
	@io.vertigo.datamodel.data.stereotype.ForeignKey(smartType = "STyPId", label = "Réservation", fkDefinition = "DtReservationCreneau" )
	public Long getRecId() {
		return (Long) recIdAccessor.getId();
	}

	/**
	 * Champ : FOREIGN_KEY.
	 * Définit la valeur de la propriété 'Réservation'.
	 * @param recId Long
	 */
	public void setRecId(final Long recId) {
		recIdAccessor.setId(recId);
	}

 	/**
	 * Association : Tranche horaire.
	 * @return l'accesseur vers la propriété 'Tranche horaire'
	 */
	public StoreVAccessor trancheHoraire() {
		return trhIdAccessor;
	}

 	/**
	 * Association : Réservation.
	 * @return l'accesseur vers la propriété 'Réservation'
	 */
	public StoreVAccessor reservationCreneau() {
		return recIdAccessor;
	}
	
	/** {@inheritDoc} */
	@Override
	public String toString() {
		return DataModelUtil.toString(this);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy