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

org.nuiton.topia.it.mapping.test14.Assoc14AAbstract Maven / Gradle / Ivy

The newest version!
package org.nuiton.topia.it.mapping.test14;

/*-
 * #%L
 * ToPIA :: IT
 * %%
 * Copyright (C) 2004 - 2024 Code Lutin
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * .
 * #L%
 */

import org.nuiton.topia.persistence.TopiaEntityVisitor;
import org.nuiton.topia.persistence.TopiaException;
import org.nuiton.topia.persistence.internal.AbstractTopiaEntity;

public abstract class Assoc14AAbstract extends AbstractTopiaEntity implements Assoc14A {

    /**
     * Nom de l'attribut en BD : roleB
     */
    protected B14A roleB;

    /**
     * Nom de l'attribut en BD : a14A
     */
    protected A14A a14A;

    private static final long serialVersionUID = 3834645093876392241L;

    @Override
    public void accept(TopiaEntityVisitor visitor) throws TopiaException {
        visitor.start(this);
        accept0(visitor);
        visitor.end(this);
    }

    protected void accept0(TopiaEntityVisitor visitor) throws TopiaException {
        visitor.visit(this, PROPERTY_ROLE_B, B14A.class, roleB);
        visitor.visit(this, PROPERTY_A14_A, A14A.class, a14A);
    }

    @Override
    public void setRoleB(B14A roleB) {
        this.roleB = roleB;
    }

    @Override
    public B14A getRoleB() {
        B14A result = this.roleB;
        return result;
    }

    @Override
    public void setA14A(A14A a14A) {
        this.a14A = a14A;
    }

    @Override
    public A14A getA14A() {
        A14A result = this.a14A;
        return result;
    }

} //Assoc14AAbstract




© 2015 - 2025 Weber Informatics LLC | Privacy Policy