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

win.doyto.query.test.menu.MenuView Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
// Generated by delombok at Sat Jan 27 04:38:03 UTC 2024
/*
 * Copyright © 2019-2024 Forb Yuan
 *
 * 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 win.doyto.query.test.menu;

import win.doyto.query.annotation.DomainPath;
import win.doyto.query.annotation.Id;
import win.doyto.query.entity.Persistable;
import win.doyto.query.test.user.UserView;
import java.util.List;

/**
 * MenuView
 *
 * @author f0rb on 2022-04-13
 */
public class MenuView implements Persistable {
    @Id
    private Integer id;
    private String menuName;
    private String platform;
    @DomainPath({"menu", "~", "perm", "~", "role", "~", "user"})
    private List users;
    // many-to-one
    @DomainPath(value = "menu", localField = "parent_id")
    private MenuView parent;
    // one-to-many
    @DomainPath(value = "menu", foreignField = "parent_id")
    private List children;

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Integer getId() {
        return this.id;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getMenuName() {
        return this.menuName;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public String getPlatform() {
        return this.platform;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public List getUsers() {
        return this.users;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public MenuView getParent() {
        return this.parent;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public List getChildren() {
        return this.children;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setId(final Integer id) {
        this.id = id;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setMenuName(final String menuName) {
        this.menuName = menuName;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setPlatform(final String platform) {
        this.platform = platform;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setUsers(final List users) {
        this.users = users;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setParent(final MenuView parent) {
        this.parent = parent;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setChildren(final List children) {
        this.children = children;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy