摘要:
"> 修改论文 发送成功!本窗口将在3秒后自动跳转 注: ${action} 要在跳转的action放入 就是方法名 阅读全文
摘要:
@Entity@javax.persistence.SequenceGenerator( name="SEQ_STORE", sequenceName="my_sequence")createtableS_Depart( @Id @GeneratedBalue(stratey=GenerationType.SEQUENCE,generator="SEQ_STORE")private LongDepartId;@Column("depart_name") private String DepartName ;@Bas 阅读全文
摘要:
public String exportExcel() { try { /** * 设置标题 */ List headerList = new ArrayList(); headerList.add("序号"); headerList.add("专业"); headerList.add("题目"); headerList.add("姓名"); headerList.add("状态"); /** * 得到要导出的数据集 */ List dataList = managerCentreService 阅读全文
摘要:
*** 班级* @author Administrator* @hibernate.class table="t_grade"**/public class Grade { /** * @hibernate.id generator-class="native" */ private int id; /** * 名称 * @hibernate.property */ private String name; /** * 包含的学生 * @hibernate.set inverse="true" lazy="extra&quo 阅读全文
摘要:
//部门public class Department { private Long id; private String name; private String description; private Set employees; //一端执有多端的一个集合引用 getter(); setter();}//员工public class Employee { private Long id; private String username; private Date joinTime; private Department de... 阅读全文
摘要:
public class User { private Integer id; private String name; private String pwd; getter(); setter();}和此类(User) 放在同一个目录下User-userLoginContext-validation.xml这个文件!User-userLoginContext-validation.xml如下: 姓名是必填的 姓名不合法 密码是必填的 action 如下public class UserAction extends ActionS... 阅读全文
摘要:
首先!要安装JBPM的插件。使用的是 jbpm-jpdl-designer-site-3.1.7!在myEclipse 图标点属性,查找目标D:/Program Files/Genuitec/MyEclipse 7.5/dropins把以上插件安入dropins 既可!JbpmConfiguration jbpmConfiguration =JbpmConfiguration.getInstance();JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();ProcessDefinuration pd = jbpmCon 阅读全文
摘要:
每一个实体一张表 以上是表person,student,teacher的继承映射,在继承映射做数据的关连时!删除person中的数据,如果student,teacher中有对应的数据也会删除!删除student,teacher中的数据如果person中有对应的数据也会删除! 自动创建生成的sql语句,... 阅读全文
摘要:
在测试Hibernate的一对多双向关联映射时,碰到很有趣的问题,跟inverse属性直接相关。1、People.hbm.xml<hibernate-mapping default-lazy="false"> <class name="com.persistent.People" table="people"> <id name="id" column="peopleId" unsaved-value="0"> <generator class="increment 阅读全文
摘要:
阅读全文