-
大小: 4.25MB文件類型: .rar金幣: 2下載: 1 次發(fā)布日期: 2023-11-09
- 語言: Java
- 標簽:
資源簡介
J2EE期末大作業(yè)-博客系統(tǒng)(附帶數(shù)據(jù)庫、邏輯說明)

代碼片段和文件信息
package?com.java.bean;
import?java.util.HashSet;
import?java.util.Set;
import?javax.persistence.CascadeType;
import?javax.persistence.Column;
import?javax.persistence.Entity;
import?javax.persistence.FetchType;
import?javax.persistence.GeneratedValue;
import?static?javax.persistence.GenerationType.IDENTITY;
import?javax.persistence.Id;
import?javax.persistence.JoinColumn;
import?javax.persistence.ManyToOne;
import?javax.persistence.OneToMany;
import?javax.persistence.Table;
/**
?*?Article?entity.?@author?MyEclipse?Persistence?Tools
?*/
@Entity
@Table(name?=?“article“?catalog?=?“blog“)
public?class?Article?implements?java.io.Serializable
{
//?Fields
private?Integer?articleId;
private?Userinfo?userinfo;
private?String?articletitle;
private?String?articleContent;
private?String?articleType;
private?String?articleTime;
private?Set?comments?=?new?HashSet(0);
//?Constructors
/**?default?constructor?*/
public?Article()
{
}
/**?minimal?constructor?*/
public?Article(Userinfo?userinfo?String?articletitle
String?articleContent?String?articleType?String?articleTime)
{
this.userinfo?=?userinfo;
this.articletitle?=?articletitle;
this.articleContent?=?articleContent;
this.articleType?=?articleType;
this.articleTime?=?articleTime;
}
/**?full?constructor?*/
public?Article(Userinfo?userinfo?String?articletitle
String?articleContent?String?articleType?String?articleTime
Set?comments)
{
this.userinfo?=?userinfo;
this.articletitle?=?articletitle;
this.articleContent?=?articleContent;
this.articleType?=?articleType;
this.articleTime?=?articleTime;
this.comments?=?comments;
}
//?Property?accessors
@Id
@GeneratedValue(strategy?=?IDENTITY)
@Column(name?=?“articleId“?unique?=?true?nullable?=?false)
public?Integer?getArticleId()
{
return?this.articleId;
}
public?void?setArticleId(Integer?articleId)
{
this.articleId?=?articleId;
}
@ManyToOne(fetch?=?FetchType.EAGER)
@JoinColumn(name?=?“articleUserId“?nullable?=?false)
public?Userinfo?getUserinfo()
{
return?this.userinfo;
}
public?void?setUserinfo(Userinfo?userinfo)
{
this.userinfo?=?userinfo;
}
@Column(name?=?“articletitle“?nullable?=?false?length?=?40)
public?String?getArticletitle()
{
return?this.articletitle;
}
public?void?setArticletitle(String?articletitle)
{
this.articletitle?=?articletitle;
}
@Column(name?=?“articleContent“?nullable?=?false)
public?String?getArticleContent()
{
return?this.articleContent;
}
public?void?setArticleContent(String?articleContent)
{
this.articleContent?=?articleContent;
}
@Column(name?=?“articleType“?nullable?=?false)
public?String?getArticleType()
{
return?this.articleType;
}
public?void?setArticleType(String?articleType)
{
this.articleType?=?articleType;
}
@Column(name?=?“articleTime“?nullable?=?false?length?=?19)
public?String?getArticleTime()
{
return?this.articleTime;
}
public?void?setArticleTime(Strin
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A.SH.???????165??2015-01-04?09:00??javaEE大作業(yè)\~$博客系統(tǒng).pptx
?????文件???????1470??2015-01-04?09:33??javaEE大作業(yè)\blog-ds.xm
?????文件????????830??2014-12-22?23:28??javaEE大作業(yè)\BlogA\.myme
?????文件???????1281??2014-12-22?23:29??javaEE大作業(yè)\BlogA\.project
?????文件????????232??2014-12-22?23:28??javaEE大作業(yè)\BlogA\.settings\org.eclipse.wst.common.component
?????文件????????125??2014-12-22?23:28??javaEE大作業(yè)\BlogA\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件????????653??2014-12-22?23:28??javaEE大作業(yè)\BlogA\me
?????文件?????????36??2014-12-22?23:28??javaEE大作業(yè)\BlogA\me
?????文件????????431??2014-12-22?20:50??javaEE大作業(yè)\BlogDB\.classpath
?????文件????????163??2014-12-22?20:50??javaEE大作業(yè)\BlogDB\.myme
?????文件???????1280??2014-12-22?20:50??javaEE大作業(yè)\BlogDB\.project
?????文件????????171??2014-12-22?20:51??javaEE大作業(yè)\BlogDB\.settings\com.genuitec.eclipse.j2eedt.core.prefs
?????文件????????395??2014-12-22?20:50??javaEE大作業(yè)\BlogDB\.settings\org.eclipse.jdt.core.prefs
?????文件????????158??2014-12-22?20:50??javaEE大作業(yè)\BlogDB\.settings\org.eclipse.jpt.core.prefs
?????文件????????305??2014-12-22?20:50??javaEE大作業(yè)\BlogDB\.settings\org.eclipse.wst.common.component
?????文件????????295??2014-12-22?20:50??javaEE大作業(yè)\BlogDB\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件???????3811??2015-01-03?17:37??javaEE大作業(yè)\BlogDB\classes\com\java\bean\Article.class
?????文件???????2486??2015-01-03?17:37??javaEE大作業(yè)\BlogDB\classes\com\java\bean\Comment.class
?????文件???????4694??2015-01-03?17:37??javaEE大作業(yè)\BlogDB\classes\com\java\bean\Userinfo.class
?????文件???????1587??2015-01-03?17:37??javaEE大作業(yè)\BlogDB\classes\com\java\eao\ArticleFacadeRemote.class
?????文件???????1080??2015-01-03?17:37??javaEE大作業(yè)\BlogDB\classes\com\java\eao\CommentFacadeRemote.class
?????文件???????1420??2015-01-03?18:51??javaEE大作業(yè)\BlogDB\classes\com\java\eao\UserinfoFacadeRemote.class
?????文件???????7948??2015-01-03?17:37??javaEE大作業(yè)\BlogDB\classes\com\java\eao\impl\ArticleFacade.class
?????文件???????5991??2015-01-03?17:37??javaEE大作業(yè)\BlogDB\classes\com\java\eao\impl\CommentFacade.class
?????文件???????1051??2015-01-03?17:37??javaEE大作業(yè)\BlogDB\classes\com\java\eao\impl\LogUtil.class
?????文件???????7363??2015-01-03?18:54??javaEE大作業(yè)\BlogDB\classes\com\java\eao\impl\UserinfoFacade.class
?????文件?????????36??2014-12-22?20:50??javaEE大作業(yè)\BlogDB\classes\me
?????文件????????935??2014-12-26?22:18??javaEE大作業(yè)\BlogDB\classes\me
?????文件???????3291??2014-12-30?18:08??javaEE大作業(yè)\BlogDB\src\com\java\bean\Article.java
?????文件???????2218??2015-01-01?22:26??javaEE大作業(yè)\BlogDB\src\com\java\bean\Comment.java
............此處省略183個文件信息
評論
共有 條評論