摘要: package com.spring.model;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.... 阅读全文
posted @ 2015-09-27 13:37 奋斗?坑 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1、新建java工程:spring_150909_hibernate_id_table,如下图所示:2、建DogPet实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Gener... 阅读全文
posted @ 2015-09-27 12:54 奋斗?坑 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1、新建java工程:spring_150908_hibernate_id_sequence,添加相关jar包(spring、hibernate、ibatis)如下图所示:2、实现实体类DogPet:package com.spring.model;import javax.persistence.... 阅读全文
posted @ 2015-09-27 11:37 奋斗?坑 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 1、新建java工程:spring_150907_sqlmapclientdaosupport_getSqlMapClient,如下图所示:2、工程里添加spring、hibernate、ibatis相关jar包,如下图所示:3、新建DogPetService接口:package com.sprin... 阅读全文
posted @ 2015-09-27 10:51 奋斗?坑 阅读(747) 评论(0) 推荐(0) 编辑
摘要: 添加到ibatis相关jar包!实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private Strin... 阅读全文
posted @ 2015-09-08 17:06 奋斗?坑 阅读(858) 评论(0) 推荐(0) 编辑
摘要: 添加ibatis相关的jar包!实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private Strin... 阅读全文
posted @ 2015-09-08 16:54 奋斗?坑 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
posted @ 2015-09-08 16:47 奋斗?坑 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
posted @ 2015-09-08 16:35 奋斗?坑 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
posted @ 2015-09-08 16:22 奋斗?坑 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
posted @ 2015-09-08 16:12 奋斗?坑 阅读(258) 评论(0) 推荐(0) 编辑