![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
文章平均质量分 76
boykang
这个作者很懒,什么都没留下…
展开
-
hibernate【4】(配置文件详解)
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">原创 2016-02-11 17:04:03 · 289 阅读 · 0 评论 -
Hibernate【3】(session和sessionFactory)
Session接口 Session接口对于Hibernate 开发人员来说是一个最重要的接口。然而在Hibernate中,实例化的Session是一个轻量级的类,创建和销毁它都不会占用很多资源。这在实际项目中确实很重要,因为在客户程序中,可能会不断地创建以及销毁Session对象,如果Session的开销太大,会给系统带来不良影响。但值得注意的是 Session对象转载 2016-02-11 16:53:16 · 501 阅读 · 0 评论 -
Hibernate【1】(安装 JBoss Tools,集成Hibernate)
一.在Eclipse Markeptplace中找到相应的版本(我比较喜欢这个方法)Eclipse 中 Help->Eclipse Markeptplace选择组件我们仅需要Hibernate Tools是必须的,还可以根据自己的情况选择其他组件,但是选择过多的组件可能会导致下载时间过长,Next,选accept后Finsh,等待下载安装,二.离线安原创 2016-02-11 15:22:04 · 321 阅读 · 0 评论 -
hibernate参考文档
http://docs.jboss.org/hibernate/annotations/3.4/reference/zh_cn/html_single/#d0e224Hibernate Annotations参考文档3.2.0 CR1目录前言1. 翻译说明2. 版权声明前言1. 创建一个注解项目1.1.转载 2016-01-01 15:06:18 · 1097 阅读 · 0 评论 -
Hibernate【2】(用Hibernate Tools生成Hibernate Mapping映射文件)
一.打开Hibernate Perspective视图层在Eclipse中打开“Hibernate Perspective“。 选择“Windows” >> “Open Perspective” >> “Others…” , 选择 “Hibernate“。二.新建Hibernate Configuration 配置1.在Hibernate Perspective中, 右键原创 2016-02-11 18:47:05 · 277 阅读 · 0 评论 -
HibernateDaoSupport
Spring的Hibernate ORM 框架带来了方便的HibernateDaoSupport类,你的DAO类可以继承它:public class StudentDaoHibernate extends HibernateDaoSupport implements StudentDao{.................}如果你选择这种设计,就需要动态注入SessionFacto转载 2016-03-06 13:31:39 · 496 阅读 · 0 评论 -
eclipse生成Hibernate注解类【续】
【1】打开 Hibernate Configurations模块,新增Add Configuration选择数据库:选择UTF-8编码:生成代码注解类:转载 2016-03-08 15:04:05 · 280 阅读 · 0 评论 -
spring(xml中的事务定义)
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springfram原创 2016-03-12 16:13:35 · 886 阅读 · 0 评论 -
spring【6】(事物创建代理 BeanNameAutoProxyCreator)
传统的java事务处理需要编写繁琐的jdbc事务代码,如:public int delete(int sID) { dbc = new DataBaseConnection(); Connection con = dbc.getConnection(); try { con.setAutoCommit(false);// 更改JDBC事务的默认提交方式 dbc.e原创 2016-02-27 00:05:01 · 399 阅读 · 0 评论