zoukankan      html  css  js  c++  java
  • ssh(Spring+Spring mvc+hibernate)——Dept.java

    package org.entity;
    
    import java.util.HashSet;
    import java.util.Set;
    
    /**
     * Dept entity. @author MyEclipse Persistence Tools
     */
    
    public class Dept implements java.io.Serializable {
    
        // Fields
    
        private Integer id;
        private String name;
        private String loc;
        private Set emps = new HashSet(0);
    
        // Constructors
    
        /** default constructor */
        public Dept() {
        }
    
        /** minimal constructor */
        public Dept(Integer id) {
            this.id = id;
        }
    
        /** full constructor */
        public Dept(Integer id, String name, String loc, Set emps) {
            this.id = id;
            this.name = name;
            this.loc = loc;
            this.emps = emps;
        }
    
        // Property accessors
    
        public Integer getId() {
            return this.id;
        }
    
        public void setId(Integer id) {
            this.id = id;
        }
    
        public String getName() {
            return this.name;
        }
    
        public void setName(String name) {
            this.name = name;
        }
    
        public String getLoc() {
            return this.loc;
        }
    
        public void setLoc(String loc) {
            this.loc = loc;
        }
    
        public Set getEmps() {
            return this.emps;
        }
    
        public void setEmps(Set emps) {
            this.emps = emps;
        }
    
    }
  • 相关阅读:
    Django----路由控制
    Django-ORM的使用
    Django-ORM框架
    Django对数据库表的操作
    Python操作mysql
    [mysql]linux mysql 基础命令操作
    [mysql]linux mysql 读写分离
    [mysql]linux mysql 主从复制
    [mysql 1]linux mysal 安装
    [mysql]linux mysal 安装
  • 原文地址:https://www.cnblogs.com/a1111/p/12816110.html
Copyright © 2011-2022 走看看