![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
wenlong342
这个作者很懒,什么都没留下…
展开
-
hibernate的多表联合查询
一、 Hibernate简介Hibernate是一个JDO工具。它的工作原理是通过文件(一般有两种:xml文件和properties文件)把值对象和数据库表之间建立起一个映射关系。这样,我们只需要通过操作这些值对象和Hibernate提供的一些基本类,就可以达到使用数据库的目的。例如,使用Hibernate的查询,可以直接返回包含某个值对象的列表(List),而不必向传统的JDBC访问方式一样把结...2008-01-07 19:05:17 · 52 阅读 · 0 评论 -
hibernate多表关联
准备工具等: eclipse3.1+MyEclipse+jdk+mysql5.0 1:创建数据库.drop database if exists SAMPLEDB;create database SAMPLEDB;use SAMPLEDB;create table CUSTOMERS ( ID bigint not null, NAME varchar(15), AGE int, ...2008-01-07 19:06:38 · 57 阅读 · 0 评论 -
hibernate官网上的管理session的例子
package sict.wenlong.operation; import org.hibernate.HibernateException;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.cfg.Configuration;public class HibernateUi...2008-01-23 18:49:32 · 75 阅读 · 0 评论 -
hibernate管理session的例子
package com.sict.employeeManagement.help; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; p...2008-03-06 15:34:49 · 79 阅读 · 0 评论 -
hibernate分页
新建表DROP DATABASE IF EXISTS `wjcms`;CREATE DATABASE `wjcms` /*!40100 DEFAULT CHARACTER SET gb2312 */;USE `wjcms`;## Table structure for table t_article#CREATE TABLE `t_article` ( `a_id` int(11) NOT NU...2008-03-10 15:09:13 · 59 阅读 · 0 评论