• 大小: 4.25MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-09
  • 语言: Java
  • 标签:

资源简介

J2EE期末大作业-博客系统(附带数据库、逻辑说明)

资源截图

代码片段和文件信息

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大作业\~$博客系统.pptx

     文件       1470  2015-01-04 09:33  javaEE大作业\blog-ds.xml

     文件        830  2014-12-22 23:28  javaEE大作业\BlogA\.mymetadata

     文件       1281  2014-12-22 23:29  javaEE大作业\BlogA\.project

     文件        232  2014-12-22 23:28  javaEE大作业\BlogA\.settings\org.eclipse.wst.common.component

     文件        125  2014-12-22 23:28  javaEE大作业\BlogA\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件        653  2014-12-22 23:28  javaEE大作业\BlogA\meta-INF\application.xml

     文件         36  2014-12-22 23:28  javaEE大作业\BlogA\meta-INF\MANIFEST.MF

     文件        431  2014-12-22 20:50  javaEE大作业\BlogDB\.classpath

     文件        163  2014-12-22 20:50  javaEE大作业\BlogDB\.mymetadata

     文件       1280  2014-12-22 20:50  javaEE大作业\BlogDB\.project

     文件        171  2014-12-22 20:51  javaEE大作业\BlogDB\.settings\com.genuitec.eclipse.j2eedt.core.prefs

     文件        395  2014-12-22 20:50  javaEE大作业\BlogDB\.settings\org.eclipse.jdt.core.prefs

     文件        158  2014-12-22 20:50  javaEE大作业\BlogDB\.settings\org.eclipse.jpt.core.prefs

     文件        305  2014-12-22 20:50  javaEE大作业\BlogDB\.settings\org.eclipse.wst.common.component

     文件        295  2014-12-22 20:50  javaEE大作业\BlogDB\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件       3811  2015-01-03 17:37  javaEE大作业\BlogDB\classes\com\java\bean\Article.class

     文件       2486  2015-01-03 17:37  javaEE大作业\BlogDB\classes\com\java\bean\Comment.class

     文件       4694  2015-01-03 17:37  javaEE大作业\BlogDB\classes\com\java\bean\Userinfo.class

     文件       1587  2015-01-03 17:37  javaEE大作业\BlogDB\classes\com\java\eao\ArticleFacadeRemote.class

     文件       1080  2015-01-03 17:37  javaEE大作业\BlogDB\classes\com\java\eao\CommentFacadeRemote.class

     文件       1420  2015-01-03 18:51  javaEE大作业\BlogDB\classes\com\java\eao\UserinfoFacadeRemote.class

     文件       7948  2015-01-03 17:37  javaEE大作业\BlogDB\classes\com\java\eao\impl\ArticleFacade.class

     文件       5991  2015-01-03 17:37  javaEE大作业\BlogDB\classes\com\java\eao\impl\CommentFacade.class

     文件       1051  2015-01-03 17:37  javaEE大作业\BlogDB\classes\com\java\eao\impl\LogUtil.class

     文件       7363  2015-01-03 18:54  javaEE大作业\BlogDB\classes\com\java\eao\impl\UserinfoFacade.class

     文件         36  2014-12-22 20:50  javaEE大作业\BlogDB\classes\meta-INF\MANIFEST.MF

     文件        935  2014-12-26 22:18  javaEE大作业\BlogDB\classes\meta-INF\persistence.xml

     文件       3291  2014-12-30 18:08  javaEE大作业\BlogDB\src\com\java\bean\Article.java

     文件       2218  2015-01-01 22:26  javaEE大作业\BlogDB\src\com\java\bean\Comment.java

............此处省略183个文件信息

评论

共有 条评论