companyservicecategory.java
来自「Struts2 + Spring JPA Hibernate demo.」· Java 代码 · 共 57 行
JAVA
57 行
package com.vegeta.model.company.service;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;/** * CompanyServiceCategory entity. @author MyEclipse Persistence Tools */@Entity@Table(name = "company_service_category", schema = "public")public class CompanyServiceCategory implements java.io.Serializable { // Fields private Integer id; private String name; // Constructors /** default constructor */ public CompanyServiceCategory() { } /** minimal constructor */ public CompanyServiceCategory(Integer id) { this.id = id; } /** full constructor */ public CompanyServiceCategory(Integer id, String name) { this.id = id; this.name = name; } // Property accessors @Id @Column(name = "id", unique = true, nullable = false) public Integer getId() { return this.id; } public void setId(Integer id) { this.id = id; } @Column(name = "name", length = 150) public String getName() { return this.name; } public void setName(String name) { this.name = name; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?