- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
DiscussBean.java.svn-base
资源名称:cindyblog.rar [点击查看]
上传用户:cdpainuo
上传日期:2022-07-12
资源大小:5257k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.appspot.cindyblog.pojo;
- import java.util.Date;
- import javax.jdo.annotations.IdGeneratorStrategy;
- import javax.jdo.annotations.IdentityType;
- import javax.jdo.annotations.PersistenceCapable;
- import javax.jdo.annotations.Persistent;
- import javax.jdo.annotations.PrimaryKey;
- import com.appspot.cindyblog.util.DateUtil;
- import com.google.appengine.api.datastore.Text;
- @PersistenceCapable(identityType = IdentityType.APPLICATION)
- public class DiscussBean implements BaseBean{
- @PrimaryKey
- @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
- private Long id; //id
- @Persistent
- private String name;
- @Persistent
- private String title; //标题
- @Persistent
- private Date time; //发表时间
- @Persistent(defaultFetchGroup="true")
- private Text content; //发表内容
- @Persistent
- private int article_id; //日志id
- @Persistent
- private String email;
- public DiscussBean(String name, String title, Date time, Text content,
- int article_id, String email) {
- super();
- this.name = name;
- this.title = title;
- this.time = time;
- this.content = content;
- this.article_id = article_id;
- this.email = email;
- }
- public DiscussBean() {
- super();
- // TODO Auto-generated constructor stub
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public Date getTime2() {
- return time;
- }
- public String getTime(){
- return DateUtil.getTime(time);
- }
- public void setTime(Date time) {
- this.time = time;
- }
- public Text getContent2() {
- return content;
- }
- public String getContent() {
- return content.getValue();
- }
- public void setContent(Text content) {
- this.content = content;
- }
- public int getAriicle_id() {
- return article_id;
- }
- public void setAriicle_id(int ariicle_id) {
- this.article_id = ariicle_id;
- }
- public int getArticle_id() {
- return article_id;
- }
- public void setArticle_id(int article_id) {
- this.article_id = article_id;
- }
- public String getEmail() {
- return email;
- }
- public void setEmail(String email) {
- this.email = email;
- }
- }