会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
马赛克都挡不住
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
5
6
7
8
9
10
下一页
2014年10月23日
spring Setter方法注入
摘要: package entity;public class User { private String id; private String name; public String getId() { return id; } public void setId(String id) { this....
阅读全文
posted @ 2014-10-23 11:35 马赛克都挡不住
阅读(459)
评论(0)
推荐(0)
2014年10月22日
向数据库插入数据第二种方法
摘要: 学生添加姓名:密码:年龄:性别:出生年月:爱好:省份:城市:地址:将前台的name都设为student.**package com.action;import java.io.IOException;import java.util.ArrayList;import java.util.List;i...
阅读全文
posted @ 2014-10-22 19:44 马赛克都挡不住
阅读(213)
评论(0)
推荐(0)
向数据库插入数据
摘要: package com.action;import java.io.IOException;import java.util.ArrayList;import java.util.List;import java.util.Map;import javax.servlet.http.HttpServ...
阅读全文
posted @ 2014-10-22 17:49 马赛克都挡不住
阅读(264)
评论(0)
推荐(0)
2014年10月16日
struts+hibernate 请求数据库增删改查(小项目实例)
摘要: StudentAction.javapackage com.action;import java.util.ArrayList;import java.util.List;import java.util.Map;import javax.servlet.http.HttpServletReques...
阅读全文
posted @ 2014-10-16 21:13 马赛克都挡不住
阅读(1223)
评论(0)
推荐(0)
2014年10月13日
第一个hibernate文件 xml配置方法
摘要: package com.entity;public class User { private String username; private String password; private Integer id; public String getUsername() { return use...
阅读全文
posted @ 2014-10-13 19:41 马赛克都挡不住
阅读(160)
评论(0)
推荐(0)
hibernate 配置文件 和一个 id生成类BaseEntity.java 和一个hibernate工具类 HibernatUtils.java
摘要: package com;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;import org.hibernate.cfg.Configuration;i...
阅读全文
posted @ 2014-10-13 19:22 马赛克都挡不住
阅读(585)
评论(0)
推荐(0)
Hibernate 一对一关联映射
摘要: package com.entity;import javax.persistence.Entity;import javax.persistence.OneToOne;@Entitypublic class Husband extends BaseEntity { @OneToOne(mapped...
阅读全文
posted @ 2014-10-13 19:20 马赛克都挡不住
阅读(126)
评论(0)
推荐(0)
hibernate 一对多映射
摘要: package com.entity.onetomany;import java.util.ArrayList;import java.util.List;import javax.persistence.Entity;import javax.persistence.OneToMany;impor...
阅读全文
posted @ 2014-10-13 19:15 马赛克都挡不住
阅读(164)
评论(0)
推荐(0)
Hibernate 多对多映射
摘要: package com.entity.manytomany;import java.util.List;import javax.persistence.Entity;import javax.persistence.JoinColumn;import javax.persistence.JoinT...
阅读全文
posted @ 2014-10-13 19:10 马赛克都挡不住
阅读(313)
评论(0)
推荐(0)
2014年10月12日
servlet 将输入内容通过拼接页面的方式显示出来
摘要: ReturnName returnname.htmlpackage controller;import java.io.IOException;import java.io.PrintWriter;import javax.servlet.ServletException;import ...
阅读全文
posted @ 2014-10-12 16:54 马赛克都挡不住
阅读(487)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
下一页
公告