- 浏览: 151250 次
- 性别:
- 来自: 深圳
文章分类
最新评论
-
hx0637:
楼主!小弟要面临面试了,能否指导下小弟?
面试 深圳一家公司的 -
kljismi:
你好,我现在正在开这项目的代码,但是我不明白@Privileg ...
权限管理模块分析 -
yzhw:
终于找到了
ImageSizer.java -
sunloveny:
国
struts国际化 -
jackotty:
谢谢楼主的分享
struts validator验证框架
User.java
User.hbm.xml
Item.java
Item.hbm.xml
Subitem.java
Subitem.hbm.xml
Question.java
Question.hbm.xml
Answer.java
Answer.hbm.xml
Admin.java
Admin.hbm.xml
package org.lxh.myzngt.vo; public class User { /** sex property */ private String sex; /** usermail property */ private String usermail; /** userques property */ private String userques; /** userid property */ private String userid; /** realname property */ private String realname; /** userans property */ private String userans; /** userpwd property */ private String userpwd; /** grade property */ private int grade; /** integral property */ private int integral; /** id property */ private int id; public int getGrade() { return grade; } public void setGrade(int grade) { this.grade = grade; } public String getRealname() { return realname; } public void setRealname(String realname) { this.realname = realname; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } public String getUserans() { return userans; } public void setUserans(String userans) { this.userans = userans; } public String getUserid() { return userid; } public void setUserid(String userid) { this.userid = userid; } public String getUsermail() { return usermail; } public void setUsermail(String usermail) { this.usermail = usermail; } public String getUserpwd() { return userpwd; } public void setUserpwd(String userpwd) { this.userpwd = userpwd; } public String getUserques() { return userques; } public void setUserques(String userques) { this.userques = userques; } public int getId() { return id; } public void setId(int id) { this.id = id; } public int getIntegral() { return integral; } public void setIntegral(int integral) { this.integral = integral; } }
User.hbm.xml
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Mapping file autogenerated by MyEclipse - Hibernate Tools --> <hibernate-mapping> <class name="org.lxh.myzngt.vo.User" table="user"> <id name="id" type="java.lang.Integer"> <column name="id" /> <generator class="native"></generator> </id> <property name="userid" type="java.lang.String"> <column name="userid" length="50" not-null="true" /> </property> <property name="userpwd" type="java.lang.String"> <column name="userpwd" length="50" /> </property> <property name="userques" type="java.lang.String"> <column name="userques" length="50" /> </property> <property name="userans" type="java.lang.String"> <column name="userans" length="50" /> </property> <property name="usermail" type="java.lang.String"> <column name="usermail" length="50" /> </property> <property name="integral" type="java.lang.Integer"> <column name="integral" /> </property> <property name="grade" type="java.lang.Integer"> <column name="grade" /> </property> <property name="sex" type="java.lang.String"> <column name="sex" length="2" /> </property> <property name="realname" type="java.lang.String"> <column name="realname" length="50" /> </property> </class> </hibernate-mapping>
Item.java
package org.lxh.myzngt.vo; import java.util.Set; public class Item { private int itemid ; private String itemname ; private int itemcode ; private Set subitems ; public int getItemcode() { return itemcode; } public void setItemcode(int itemcode) { this.itemcode = itemcode; } public int getItemid() { return itemid; } public void setItemid(int itemid) { this.itemid = itemid; } public String getItemname() { return itemname; } public void setItemname(String itemname) { this.itemname = itemname; } public Set getSubitems() { return subitems; } public void setSubitems(Set subitems) { this.subitems = subitems; } }
Item.hbm.xml
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Mapping file autogenerated by MyEclipse - Hibernate Tools --> <hibernate-mapping> <class name="org.lxh.myzngt.vo.Item" table="item"> <id name="itemid" type="java.lang.Integer"> <column name="itemid" /> <generator class="native" /> </id> <property name="itemname" type="java.lang.String"> <column name="itemname" length="50" /> </property> <property name="itemcode" type="java.lang.Integer"> <column name="itemcode" /> </property> <set name="subitems" inverse="true" cascade="all" table="subitem" lazy="true" order-by="subcode"> <key> <column name="itemid" /> </key> <one-to-many class="org.lxh.myzngt.vo.Subitem" /> </set> </class> </hibernate-mapping>
Subitem.java
package org.lxh.myzngt.vo; public class Subitem { private int subid ; private String subname ; private String itemid ; private int subcode ; private Item item ; public String getItemid() { return itemid; } public void setItemid(String itemid) { this.itemid = itemid; } public int getSubid() { return subid; } public void setSubid(int subid) { this.subid = subid; } public String getSubname() { return subname; } public void setSubname(String subname) { this.subname = subname; } public Item getItem() { return item; } public void setItem(Item item) { this.item = item; } public int getSubcode() { return subcode; } public void setSubcode(int subcode) { this.subcode = subcode; } }
Subitem.hbm.xml
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Mapping file autogenerated by MyEclipse - Hibernate Tools --> <hibernate-mapping> <class name="org.lxh.myzngt.vo.Subitem" table="subitem"> <id name="subid" type="java.lang.Integer"> <column name="subid" /> <generator class="native" /> </id> <many-to-one name="item" class="org.lxh.myzngt.vo.Item"> <column name="itemid" /> </many-to-one> <property name="subname" type="java.lang.String"> <column name="subname" length="50" /> </property> <property name="subcode" type="java.lang.Integer"> <column name="subcode" /> </property> </class> </hibernate-mapping>
Question.java
package org.lxh.myzngt.vo; import java.util.Date; import java.util.Set; public class Question { private int qid ; private String title ; private String content ; private int itemid ; private int subid ; private String userid ; private String grade ; private int offerscore ; private int status ; private Date questiontime ; private int clickcount ; private int acceptflag ; private int commenflag ; private Set answers ; public int getAcceptflag() { return acceptflag; } public void setAcceptflag(int acceptflag) { this.acceptflag = acceptflag; } public int getClickcount() { return clickcount; } public void setClickcount(int clickcount) { this.clickcount = clickcount; } public int getCommenflag() { return commenflag; } public void setCommenflag(int commenflag) { this.commenflag = commenflag; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public int getItemid() { return itemid; } public void setItemid(int itemid) { this.itemid = itemid; } public int getOfferscore() { return offerscore; } public void setOfferscore(int offerscore) { this.offerscore = offerscore; } public int getQid() { return qid; } public void setQid(int qid) { this.qid = qid; } public Date getQuestiontime() { return questiontime; } public void setQuestiontime(Date questiontime) { this.questiontime = questiontime; } public int getStatus() { return status; } public void setStatus(int status) { this.status = status; } public int getSubid() { return subid; } public void setSubid(int subid) { this.subid = subid; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getUserid() { return userid; } public void setUserid(String userid) { this.userid = userid; } public Set getAnswers() { return answers; } public void setAnswers(Set answers) { this.answers = answers; } public String getGrade() { return grade; } public void setGrade(String grade) { this.grade = grade; } }
Question.hbm.xml
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Mapping file autogenerated by MyEclipse - Hibernate Tools --> <hibernate-mapping> <class name="org.lxh.myzngt.vo.Question" table="question"> <id name="qid" type="java.lang.Integer"> <column name="qid" /> <generator class="native" /> </id> <property name="title" type="java.lang.String"> <column name="title" length="50" /> </property> <property name="content" type="java.lang.String"> <column name="content" length="65535" /> </property> <property name="itemid" type="java.lang.Integer"> <column name="itemid" /> </property> <property name="subid" type="java.lang.Integer"> <column name="subid" /> </property> <property name="userid" type="java.lang.String"> <column name="userid" length="50" /> </property> <property name="grade" type="java.lang.String"> <column name="grade" length="50" /> </property> <property name="offerscore" type="java.lang.Integer"> <column name="offerscore" /> </property> <property name="status" type="java.lang.Integer"> <column name="status" /> </property> <property name="questiontime" type="java.util.Date"> <column name="questiontime" length="19" /> </property> <property name="clickcount" type="java.lang.Integer"> <column name="clickcount" /> </property> <property name="acceptflag" type="java.lang.Integer"> <column name="acceptflag" /> </property> <property name="commenflag" type="java.lang.Integer"> <column name="commenflag" /> </property> <set name="answers" inverse="true" table="answer"> <key> <column name="qid" /> </key> <one-to-many class="org.lxh.myzngt.vo.Answer" /> </set> </class> </hibernate-mapping>
Answer.java
package org.lxh.myzngt.vo; import java.util.Date; public class Answer { private int aid ; private String quesans ; private String userid ; private String grade ; private Date anstime ; private int status ; private int qid ; private Question question ; public int getAid() { return aid; } public void setAid(int aid) { this.aid = aid; } public Date getAnstime() { return anstime; } public void setAnstime(Date anstime) { this.anstime = anstime; } public int getQid() { return qid; } public void setQid(int qid) { this.qid = qid; } public String getQuesans() { return quesans; } public void setQuesans(String quesans) { this.quesans = quesans; } public int getStatus() { return status; } public void setStatus(int status) { this.status = status; } public String getUserid() { return userid; } public void setUserid(String userid) { this.userid = userid; } public Question getQuestion() { return question; } public void setQuestion(Question question) { this.question = question; } public String getGrade() { return grade; } public void setGrade(String grade) { this.grade = grade; } }
Answer.hbm.xml
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Mapping file autogenerated by MyEclipse - Hibernate Tools --> <hibernate-mapping> <class name="org.lxh.myzngt.vo.Answer" table="answer"> <id name="aid" type="java.lang.Integer"> <column name="aid" /> <generator class="native" /> </id> <many-to-one name="question" class="org.lxh.myzngt.vo.Question" fetch="select"> <column name="qid" /> </many-to-one> <property name="quesans" type="java.lang.String"> <column name="quesans" length="50" /> </property> <property name="userid" type="java.lang.String"> <column name="userid" length="50" /> </property> <property name="grade" type="java.lang.String"> <column name="grade" length="50" /> </property> <property name="anstime" type="java.util.Date"> <column name="anstime" length="19" /> </property> <property name="status" type="java.lang.Integer"> <column name="status" /> </property> </class> </hibernate-mapping>
Admin.java
package org.lxh.myzngt.vo; public class Admin { private int id ; private String adminid ; private String adminpwd ; public String getAdminid() { return adminid; } public void setAdminid(String adminid) { this.adminid = adminid; } public String getAdminpwd() { return adminpwd; } public void setAdminpwd(String adminpwd) { this.adminpwd = adminpwd; } public int getId() { return id; } public void setId(int id) { this.id = id; } }
Admin.hbm.xml
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Mapping file autogenerated by MyEclipse - Hibernate Tools --> <hibernate-mapping> <class name="org.lxh.myzngt.vo.Admin" table="admin"> <id name="id" type="java.lang.Integer"> <column name="id" /> <generator class="native" /> </id> <property name="adminid" type="java.lang.String"> <column name="adminid" length="50" not-null="true" /> </property> <property name="adminpwd" type="java.lang.String"> <column name="adminpwd" length="50" /> </property> </class> </hibernate-mapping>
发表评论
-
WebRoot\jsp\ques
2008-12-25 23:16 938question.jsp <%@ page cont ... -
MyZhiNangTuanDemo\WebRoot\WEB-INF
2008-12-25 22:06 1034web.xml <?xml version=" ... -
org.lxh.myzngt.util
2008-12-25 21:46 963MD5Code.java package org.lxh.m ... -
ApplicationResources.properties
2008-12-25 21:41 1120# Resources for parameter 'org. ... -
org.lxh.myzngt.filter
2008-12-25 21:26 1021AdminLoginFilter.java packa ... -
\WebRoot\jsp
2008-12-25 20:09 1136index.jsp <%@ page co ... -
USER
2008-12-25 19:54 902UserForm.java /* * Generate ... -
WebRoot
2008-12-25 19:43 900temp.htm <html> <he ... -
applicationContext.xml
2008-12-25 19:39 1026<?xml version="1.0" ... -
我的智囊团—数据库创建脚本.sql
2008-12-25 17:50 1602/*============================= ...
相关推荐
"LXH_DECRYPT.rar"这个压缩包文件显然包含了关于Windows Socket编程、加密技术和连接管理的资源,特别是针对科友加密机的不同指令类型。让我们深入探讨这些知识点。 首先,Windows Socket(通常称为Winsock)是...
一、源码特点 加载DLL文件生成代码 二、功能介绍 1. WeifenLuo.WinFormsUI.Docking 组件的使用 2.... 3....三、注意事项 1、运行前先修改debug/Config.xml文件夹里的FileUrl属性,修改您要生成.dll文件的确切位置 ...
根据提供的文件信息,我们可以深入分析联想Lenovo LXH-GJ15L4液晶显示器的相关技术细节和技术要点。本文将从规格、操作注意事项、电路描述、故障排除等方面进行详细阐述。 ### 一、规格 #### 1.1 一般规格 - **LCD...
液晶显示屏LXH-GJ71L3-U402-56L1133-47-AH1V的1.1版本MCU(微控制器)程序是电子设备中一个关键的组成部分,主要用于控制液晶屏的显示功能。在这个程序中,MCU扮演着中枢神经系统的角色,它接收并处理来自系统的指令...
p.setProperty("a","org.lxh.demo.Apple") ; p.setProperty("o","org.lxh.demo.Orange") ; p.setProperty("b","org.lxh.demo.Banana") ; p.setProperty("c","org.lxh.demo.Cherry") ; // 在文件中保存一段...
描述中提到的“联想LXH- JME2207P(FN)键盘驱动”可能是指键盘的特殊型号或者特定版本,其中“LXH”可能是联想内部的产品代码,而“FN”键通常是指键盘上的功能键,用于配合F1到F12等键实现多媒体控制、亮度调节等...
framework-lxh PHP 轻量级web后台代码生成器(个人学习之作,尚在开发中) 本框架的设计参考了lavarel和lavarel-admin,能够以简单的代码帮助开发者快速搭建完善的后台; 本框架引入了基于事件和拦截器的插件机制,...
伴随我两年,我最喜欢的SQL速查手册
【LXH3ng.github.io】是一个个人网页项目,它基于GitHub Pages服务,通常用于展示个人作品、博客或者简历。这个项目的源代码被压缩在名为"LXH3ng.github.io-master"的文件中,这表明它是从GitHub仓库克隆或导出的主...
在Android开发中,触摸事件(Touch Events)是用户与设备交互的重要方式,它涉及到Activity、View及ViewGroup等核心组件的交互。`android touch demo`是一个用于演示Android系统中触摸事件处理的示例项目,通过这个...
<select id="selectDepartWithClasses" resultType="org.lxh.vo.Depart"> SELECT d.*, c.classno, c.classname, c.headname FROM t_depart d LEFT JOIN t_class c ON d.dno = c.dno ``` 这里使用了LEFT ...
标题中的“联想FN功能键 jme2207p键盘驱动. XP windows7”表明这是一个针对联想笔记本电脑的FN功能键以及JME2207P型号键盘的驱动程序,适用于Windows XP和Windows 7操作系统。FN键是许多笔记本电脑上常见的辅助功能...
【公务员面试五大典型形式及攻略】是针对公务员选拔面试中常见的五种面试方式的详细解析。这五种形式包括结构化面试、情景模拟面试、无领导小组讨论面试、文件筐测验面试和演讲法面试。 **一、结构化面试** ...
CMSimple Classic是一个内容管理系统,主要用于轻松... CMSimple_LXH是CMSimple_XH的轻型分支。 试图使CMSimple的更新版本更小,更简单,更智能。 它使用UTF-8编码,这是Web的首选编码,并且与所有更新的XH插件兼容。
lxh-blade 极轻js模板引擎(混淆压缩后大小不超过6KB) 为保持轻量的特性,本引擎只提供一些常用的功能。如不能满足业务需求,请使用自定义标签功能进行拓展!模板命令的命名风格上参考了lavarel的blade模板引擎 ...
- **Struts**:选择 **Struts 1.2**,设置 **Base Package for New Class** 为 `org.lxh.myznt.struts`,点击 **Finish**。 5. **加入未加载的包** - 在项目属性中选择 **Java Build Path -> Libraries -> Add ...
package org.lxh.vo; public class Person { private String id; private String name; private int age; public String getName() { return name; } public void setName(String name) { this.name = name; ...
<source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> <p>Your browser does not support the video tag. ``` 在这个例子中,视频控件(如播放、暂停等)是通过`controls`...
org.lxh.myzngt.filter.AdminLoginFilter <filter-name>adminlogin <url-pattern>/jsp/admin/* ``` #### 过滤器类实现 接下来是过滤器类`AdminLoginFilter`的具体实现。此类继承自`javax.servlet.Filter`...
这里定义了一个名为`mldn`的标签,它的实现类是`org.lxh.demo01.Hello`,并且指定标签内部不允许包含任何内容。 ##### 3. 在JSP中调用标签 最后,我们可以在JSP页面中通过以下方式来调用上面定义的标签: ```jsp ...