• 大小: 33.15MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-03
  • 语言: Java
  • 标签: spring  hibernate  struts  

资源简介

数据库语句都替你们写好了,只要导入一些相应的jar包就行

资源截图

代码片段和文件信息

package com.crazy4java.hibernate.db;

import java.util.HashSet;
import java.util.Set;

/**
 * Book generated by MyEclipse Persistence Tools
 */

public class Book implements java.io.Serializable {

// Fields

private Integer id;
private String bookname;
private String author;
private String translator;
private String category;
private String press;
private String pubDate;
private Float marketPrice;
private Float ordinaryPrice;
private Float advancedPrice;
private Float vipPrice;
private String format;
private String edition;
private String binding;
private String isbn;
private Float wordCnt;
private Integer pageCnt;
private String target;
private String introduction;
private String preface;
private String content;
private String image;
private Set comments = new HashSet(0);
private Set orderDetails = new HashSet(0);
private Set buyHistories = new HashSet(0);

// Constructors

/** default constructor */
public Book() {
}

/** minimal constructor */
public Book(String bookname String author String category String press
Float marketPrice Float ordinaryPrice Float advancedPrice
Float vipPrice) {
this.bookname = bookname;
this.author = author;
this.category = category;
this.press = press;
this.marketPrice = marketPrice;
this.ordinaryPrice = ordinaryPrice;
this.advancedPrice = advancedPrice;
this.vipPrice = vipPrice;
}

/** full constructor */
public Book(String bookname String author String translator
String category String press String pubDate Float marketPrice
Float ordinaryPrice Float advancedPrice Float vipPrice String format
String edition String binding String isbn Float wordCnt
Integer pageCnt String target String introduction String preface
String content String image Set comments Set orderDetails
Set buyHistories) {
this.bookname = bookname;
this.author = author;
this.translator = translator;
this.category = category;
this.press = press;
this.pubDate = pubDate;
this.marketPrice = marketPrice;
this.ordinaryPrice = ordinaryPrice;
this.advancedPrice = advancedPrice;
this.vipPrice = vipPrice;
this.format = format;
this.edition = edition;
this.binding = binding;
this.isbn = isbn;
this.wordCnt = wordCnt;
this.pageCnt = pageCnt;
this.target = target;
this.introduction = introduction;
this.preface = preface;
this.content = content;
this.image = image;
this.comments = comments;
this.orderDetails = orderDetails;
this.buyHistories = buyHistories;
}

// Property accessors

public Integer getId() {
return this.id;
}

public void setId(Integer id) {
this.id = id;
}

public String getBookname() {
return this.bookname;
}

public void setBookname(String bookname) {
this.bookname = bookname;
}

public String getAuthor() {
return this.author;
}

public void setAuthor(String a

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       7587  2008-07-22 13:33  Chapter24\db.sql

     文件       4252  2008-03-20 09:38  Chapter24\Shopping_Demo\.classpath

     文件        587  2008-03-20 09:26  Chapter24\Shopping_Demo\.myhibernatedata

     文件        308  2008-03-20 09:27  Chapter24\Shopping_Demo\.mymetadata

     文件        261  2008-03-20 09:26  Chapter24\Shopping_Demo\.mystrutsdata

     文件       1724  2008-03-20 09:27  Chapter24\Shopping_Demo\.project

     文件        150  2008-03-20 09:26  Chapter24\Shopping_Demo\.settings\org.eclipse.core.resources.prefs

     文件        320  2008-03-20 09:26  Chapter24\Shopping_Demo\.springBeans

     文件        342  2008-03-20 09:26  Chapter24\Shopping_Demo\hibernate.reveng.xml

     文件       3820  2008-03-20 09:26  Chapter24\Shopping_Demo\src\applicationContext.xml

     文件       5758  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\Book.hbm.xml

     文件       6198  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\Book.java

     文件       6838  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\BookDAO.java

     文件       1458  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\BuyHistory.hbm.xml

     文件       1264  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\BuyHistory.java

     文件       3992  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\BuyHistoryDAO.java

     文件       2436  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\Card.hbm.xml

     文件       2634  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\Card.java

     文件       4442  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\CardDAO.java

     文件       1280  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\CardUse.hbm.xml

     文件       1082  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\CardUse.java

     文件       3752  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\CardUseDAO.java

     文件       1723  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\Comment.hbm.xml

     文件       1488  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\Comment.java

     文件       4030  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\CommentDAO.java

     文件       3341  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\HibernateSessionFactory.java

     文件       1097  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\MCategory.hbm.xml

     文件       1041  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\MCategory.java

     文件       3946  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\MCategoryDAO.java

     文件       4093  2008-03-20 09:26  Chapter24\Shopping_Demo\src\com\crazy4java\hibernate\db\Member.hbm.xml

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

评论

共有 条评论