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

资源简介

用java编写一个简易的网吧计费系统,用hibernate框架,sql2008数据库或者是2005数据库,用户sa密码123456,在数据库中用到触发器,在程序中使用线程来计算钱 实现的主要功能是练习线程、hashmap、hibernate、全局变量的灵活掌握

资源截图

代码片段和文件信息

package com.handson.bean;

import java.io.Serializable;

public class CardBean implements Serializable {
private int id;   //标识
private String cardID;   //卡编号
private String cardName;   //用户名
private String cardPass;   //密码
private float cardBalance; //卡内余额
private float cardSpend;  //卡片消耗的钱
private int cardStatus; //卡状态
private int cardLevel;  //卡等级
public CardBean() {
super();
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getCardID() {
return cardID;
}
public void setCardID(String cardID) {
this.cardID = cardID;
}
public String getCardName() {
return cardName;
}
public void setCardName(String cardName) {
this.cardName = cardName;
}
public String getCardPass() {
return cardPass;
}
public void setCardPass(String cardPass) {
this.cardPass = cardPass;
}
public float getCardBalance() {
return cardBalance;
}
public void setCardBalance(float cardBalance) {
this.cardBalance = cardBalance;
}
public float getCardSpend() {
return cardSpend;
}
public void setCardSpend(float cardSpend) {
this.cardSpend = cardSpend;
}
public int getCardStatus() {
return cardStatus;
}
public void setCardStatus(int cardStatus) {
this.cardStatus = cardStatus;
}
public int getCardLevel() {
return cardLevel;
}
public void setCardLevel(int cardLevel) {
this.cardLevel = cardLevel;
}
public String toString(){
return this.id+“\t“+this.cardID+“\t“+this.cardName+“\t“+this.cardPass+“\t“+this.cardBalance+“\t“+this.cardSpend+“\t“+this.cardStatus+“\t“+this.cardLevel+“\n“;
}
}

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

     文件       1169  2010-09-26 21:07  COMPUTERSYSTEM\ (2).classpath

     文件       1169  2010-09-26 21:07  COMPUTERSYSTEM\.classpath

     文件        390  2010-09-25 21:09  COMPUTERSYSTEM\.project

     文件        629  2010-09-25 21:09  COMPUTERSYSTEM\.settings\org.eclipse.jdt.core.prefs

     文件       2418  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\bean\CardBean.class

     文件        800  2010-09-26 13:03  COMPUTERSYSTEM\bin\com\handson\bean\CardBean.hbm.xml

     文件       1573  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\bean\ComputerBean.class

     文件        555  2010-09-26 15:02  COMPUTERSYSTEM\bin\com\handson\bean\ComputerBean.hbm.xml

     文件       1539  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\bean\MachineBean.class

     文件        651  2010-09-26 21:14  COMPUTERSYSTEM\bin\com\handson\bean\MachineBean.hbm.xml

     文件        499  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\bo\AdminBo.class

     文件        609  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\dao\AdminDao.class

     文件       2181  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\dao\CardDao.class

     文件       2150  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\dao\ComputerDao.class

     文件       2276  2010-09-26 22:37  COMPUTERSYSTEM\bin\com\handson\dao\MachineDao.class

     文件       1413  2010-09-26 21:47  COMPUTERSYSTEM\bin\com\handson\text\Text.class

     文件       1225  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\util\CompareChoise.class

     文件       1140  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\util\Factory.class

     文件       1652  2010-09-26 21:56  COMPUTERSYSTEM\bin\com\handson\util\NextAndUp.class

     文件       2558  2010-09-26 23:10  COMPUTERSYSTEM\bin\com\handson\util\SpendTime.class

     文件        825  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\util\Tools.class

     文件       1123  2010-09-26 21:12  COMPUTERSYSTEM\bin\com\handson\view\AdminView.class

     文件       3069  2010-09-26 21:43  COMPUTERSYSTEM\bin\com\handson\view\CardView.class

     文件       2953  2010-09-26 21:44  COMPUTERSYSTEM\bin\com\handson\view\ComputerView.class

     文件       3939  2010-09-26 23:25  COMPUTERSYSTEM\bin\com\handson\view\MachineView.class

     文件        939  2010-09-26 17:23  COMPUTERSYSTEM\bin\hibernate.cfg.xml

     文件     435593  2010-09-26 13:03  COMPUTERSYSTEM\bin\lib\antlr-2.7.6.jar

     文件      16777  2010-09-26 13:03  COMPUTERSYSTEM\bin\lib\asm-attrs.jar

     文件      26360  2010-09-26 13:03  COMPUTERSYSTEM\bin\lib\asm.jar

     文件     249603  2010-09-26 13:03  COMPUTERSYSTEM\bin\lib\cglib-2.1.3.jar

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

评论

共有 条评论

相关资源