资源简介

J2E图书管理系统

资源截图

代码片段和文件信息

package action;

import org.springframework.beans.factory.annotation.Autowired;

import service.impl.BookDaoImpl;
import vo.Book;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class BookAction extends ActionSupport implements ModelDriven {
Book book;
String message;

@Autowired
BookDaoImpl bookDaoImpl;

public String add() {
bookDaoImpl.saveBook(book);
message = “添加图书信息成功!“;
return SUCCESS;
}

public String update() {
bookDaoImpl.updateBook(book);
message = “更新图书信息成功!“;
return SUCCESS;
}

public String select() {
book = bookDaoImpl.selectBook(book.getIsbn());
setMessage(“查询图书信息成功!“);
return SUCCESS;
}

public String delete() {
bookDaoImpl.deleteBook(book.getIsbn());

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

     文件       1930  2017-05-30 18:31  Test8\Test8\.classpath

     文件        437  2017-05-24 15:00  Test8\Test8\.myhibernatedata

     文件       1538  2017-05-23 21:17  Test8\Test8\.project

     文件        522  2017-05-23 16:35  Test8\Test8\.settings\.jsdtscope

     文件         76  2017-05-30 18:30  Test8\Test8\.settings\com.genuitec.eclipse.migration.prefs

     文件        745  2017-05-23 21:31  Test8\Test8\.settings\com.genuitec.runtime.libraries.xml

     文件        364  2017-05-30 18:31  Test8\Test8\.settings\org.eclipse.jdt.core.prefs

     文件        474  2017-05-30 17:16  Test8\Test8\.settings\org.eclipse.wst.common.component

     文件        588  2017-05-23 16:36  Test8\Test8\.settings\org.eclipse.wst.common.project.facet.core.prefs.xml

     文件        563  2017-05-30 18:30  Test8\Test8\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2017-05-23 16:35  Test8\Test8\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2017-05-23 16:35  Test8\Test8\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        425  2017-05-23 16:36  Test8\Test8\.springBeans

     文件       2015  2017-05-30 18:33  Test8\Test8\src\action\BookAction.java

     文件       1966  2017-05-25 08:50  Test8\Test8\src\action\LendAction.java

     文件       1239  2017-05-30 18:58  Test8\Test8\src\action\LoginAction.java

     文件       2108  2017-05-30 18:33  Test8\Test8\src\action\StudentAction.java

     文件       4519  2017-05-30 18:42  Test8\Test8\src\applicationContext.xml

     文件       1077  2017-05-24 15:00  Test8\Test8\src\hibernate.cfg.xml

     文件        320  2017-05-30 17:17  Test8\Test8\src\service\BooksDao.java

     文件       1619  2017-05-30 17:20  Test8\Test8\src\service\impl\BookDaoImpl.java

     文件       2338  2017-05-30 17:19  Test8\Test8\src\service\impl\LendDaoImpl.java

     文件        983  2017-05-30 18:55  Test8\Test8\src\service\impl\LoginDaoImpl.java

     文件       1579  2017-05-30 17:19  Test8\Test8\src\service\impl\StudentDaoImpl.java

     文件        633  2017-05-23 17:19  Test8\Test8\src\service\LendDao.java

     文件        145  2017-05-23 17:19  Test8\Test8\src\service\LoginDao.java

     文件        147  2017-05-23 17:19  Test8\Test8\src\service\StudentDao.java

     文件       3223  2017-05-23 16:50  Test8\Test8\src\sessionfactory\HibernateSessionFactory.java

     文件        825  2017-05-30 21:34  Test8\Test8\src\struts.xml

     文件       1327  2017-05-08 21:55  Test8\Test8\src\vo\Book.hbm.xml

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

评论

共有 条评论