cms.entity.account.Arctype.java Source code

Java tutorial

Introduction

Here is the source code for cms.entity.account.Arctype.java

Source

/**
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * 
 * Founder admin@love320.com
 * 
 * http://www.love320.com
 */
package cms.entity.account;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import cms.entity.IdEntity;

/*
 * ?
 * */
@Entity
//.
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Arctype extends IdEntity {
    private int reid; //? 
    private int topid; //?
    private int sortrank; // ??
    private String typename; //???
    private String typedir;// ?
    private int isdefault;// ?10-1?
    private String defaultname;// ??
    private int issend;// ??0??1? 
    private int channeltype; //?ID
    private int maxpage; //
    private int ispart; //?0?1???2 
    private int corank; // ??? 
    private String tempindex; //??? 
    private String templist;//? 
    private String temparticle;//?
    private String templistname;//??? 
    private String temparticlename;//??? 
    private String namerule;//??{typedir}/{Y}{M}{D}/{aid}.html 
    private String namerule2;//??{typedir}/{Y}{M}{D}/{aid}.html
    private String modname; //
    private String description;//???;
    private String keywords; //
    private int moresite; //?0?? 
    private String sitepath;//?? 
    private String siteurl;//??
    private int ishidden;//????0
    //private int cross;//?0??1?????2??ID
    private String crossid;//??ID
    private String content;//?
    private String clickmethods;//?

    private EntityMode entitymode;//?
    private List<Archives> archivesList;//
    private List<Shop> shopList;//?

    @ManyToOne
    @JoinTable(name = "Arctype_Entitymode", joinColumns = {
            @JoinColumn(name = "Arctype_id") }, inverseJoinColumns = { @JoinColumn(name = "Entitymode_id") })
    public EntityMode getEntitymode() {
        return entitymode;
    }

    public void setEntitymode(EntityMode entitymode) {
        this.entitymode = entitymode;
    }

    @OneToMany(mappedBy = "arctype")
    @Cascade(CascadeType.ALL)
    @OrderBy("id desc")
    @Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
    public List<Shop> getShopList() {
        return shopList;
    }

    public void setShopList(List<Shop> shopList) {
        this.shopList = shopList;
    }

    @OneToMany(mappedBy = "arctype")
    @Cascade(CascadeType.ALL)
    @OrderBy("id desc")
    @Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
    public List<Archives> getArchivesList() {
        return archivesList;
    }

    public void setArchivesList(List<Archives> archivesList) {
        this.archivesList = archivesList;
    }

    public int getReid() {
        return reid;
    }

    public void setReid(int reid) {
        this.reid = reid;
    }

    public int getTopid() {
        return topid;
    }

    public void setTopid(int topid) {
        this.topid = topid;
    }

    public int getSortrank() {
        return sortrank;
    }

    public void setSortrank(int sortrank) {
        this.sortrank = sortrank;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public String getTypedir() {
        return typedir;
    }

    public void setTypedir(String typedir) {
        this.typedir = typedir;
    }

    public int getIsdefault() {
        return isdefault;
    }

    public void setIsdefault(int isdefault) {
        this.isdefault = isdefault;
    }

    public String getDefaultname() {
        return defaultname;
    }

    public void setDefaultname(String defaultname) {
        this.defaultname = defaultname;
    }

    public int getIssend() {
        return issend;
    }

    public void setIssend(int issend) {
        this.issend = issend;
    }

    public int getChanneltype() {
        return channeltype;
    }

    public void setChanneltype(int channeltype) {
        this.channeltype = channeltype;
    }

    public int getMaxpage() {
        return maxpage;
    }

    public void setMaxpage(int maxpage) {
        this.maxpage = maxpage;
    }

    public int getIspart() {
        return ispart;
    }

    public void setIspart(int ispart) {
        this.ispart = ispart;
    }

    public int getCorank() {
        return corank;
    }

    public void setCorank(int corank) {
        this.corank = corank;
    }

    public String getTempindex() {
        return tempindex;
    }

    public void setTempindex(String tempindex) {
        this.tempindex = tempindex;
    }

    public String getTemplist() {
        return templist;
    }

    public void setTemplist(String templist) {
        this.templist = templist;
    }

    public String getTemparticle() {
        return temparticle;
    }

    public void setTemparticle(String temparticle) {
        this.temparticle = temparticle;
    }

    public String getNamerule() {
        return namerule;
    }

    public void setNamerule(String namerule) {
        this.namerule = namerule;
    }

    public String getNamerule2() {
        return namerule2;
    }

    public void setNamerule2(String namerule2) {
        this.namerule2 = namerule2;
    }

    public String getModname() {
        return modname;
    }

    public void setModname(String modname) {
        this.modname = modname;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public int getMoresite() {
        return moresite;
    }

    public void setMoresite(int moresite) {
        this.moresite = moresite;
    }

    public String getSitepath() {
        return sitepath;
    }

    public void setSitepath(String sitepath) {
        this.sitepath = sitepath;
    }

    public String getSiteurl() {
        return siteurl;
    }

    public void setSiteurl(String siteurl) {
        this.siteurl = siteurl;
    }

    public int getIshidden() {
        return ishidden;
    }

    public void setIshidden(int ishidden) {
        this.ishidden = ishidden;
    }

    public String getCrossid() {
        return crossid;
    }

    public void setCrossid(String crossid) {
        this.crossid = crossid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTemplistname() {
        return templistname;
    }

    public void setTemplistname(String templistname) {
        this.templistname = templistname;
    }

    public String getTemparticlename() {
        return temparticlename;
    }

    public void setTemparticlename(String temparticlename) {
        this.temparticlename = temparticlename;
    }

    public String getClickmethods() {
        return clickmethods;
    }

    public void setClickmethods(String clickmethods) {
        this.clickmethods = clickmethods;
    }

}