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

win.doyto.query.test.DynamicEntity 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;

import win.doyto.query.annotation.Column;
import win.doyto.query.annotation.Entity;
import win.doyto.query.annotation.Transient;
import win.doyto.query.core.IdWrapper;
import win.doyto.query.entity.AbstractPersistable;
import java.util.Date;

/**
 * DynamicEntity
 *
 * @author f0rb on 2019-05-25
 */
@Entity(name = DynamicEntity.TABLE)
public class DynamicEntity extends AbstractPersistable {
    public static final String TABLE = "t_dynamic_${user}_${project}";
    @Transient
    private String user;
    @Transient
    private String project;
    @Transient
    private String locale;
    @Column(name = "locale_${locale}")
    private String value;
    @Column(name = "user_score")
    private Integer score;
    private String memo;
    @Transient
    private Date createTime;

    @Override
    public IdWrapper toIdWrapper() {
        return new DynamicIdWrapper(id, user, project, locale);
    }

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

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

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

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

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

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Date getCreateTime() {
        return this.createTime;
    }

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

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

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

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

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

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

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy