【Java开源代码栏目提醒】:以下是网学会员为您推荐的Java开源代码-ContentType.java,希望本篇文章对您学习有所帮助。
package com.myEdition.bean;
import java.io.Serializable;
import org.apache.struts.action.ActionForm;
/**该类对应表contentType,继承ActionForm
*/
public class ContentType extends ActionForm implements Serializable {
/**定义主键 */
private Integer id;
/**定义内容类别名称*/
private String name;
/** 构造函数*/
public ContentType(String name) {
this.name = name;
}
/**构造函数*/
public ContentType() {
}
/**获取主键
* @hibernate.id
* generator-class="native"
* type="java.lang.Integer"
* column="id"
*/
public Integer getId() {
return this.id;
}
//设定主键
public void setId(Integer id) {
this.id = id;
}
/** 获取内容类别名称
* @hibernate.property
* column="name"
* length="50"
* not-null="true"
*
*/
public String getName() {
return this.name;
}
//设定内容类别名称
public void setName(String name) {
this.name = name;
}
}
上一篇:
ContentForm.java
下一篇:
青青子衿,悠悠我心