此文转自:http://blog.knowsky.com/252047.htm所需要用到的3个jar包分别是:hibernate-annotations.jarejb3-persistence.jarhibernate-commons-annotations.jarjar包导入了。使用Hiberna...
分类:
Web程序 时间:
2015-04-16 19:47:41
阅读次数:
134
android:persistentDrawingCache (Google官方译文)
Defines the persistence of the drawing cache. The drawing cache might be enabled by a ViewGroup for all its children in specific situations (for instan...
分类:
移动开发 时间:
2015-04-10 18:00:54
阅读次数:
124
在本文中我们介绍并比较两种最流行的开源持久框架:iBATIS和Hibernate,我们还会讨论到Java Persistence API(JPA)。我们介绍每种解决方案并讨论其所规定的品质,以及在广泛的应用场景中其各自的长处和缺点。然后我们会基于诸如性能、移植性、复杂性以及对数据模型改变的适应...
分类:
Web程序 时间:
2015-04-10 17:00:31
阅读次数:
1172
在进入主题之前,你必须对Spring 的AOP有一定的认识了解,本文还引用到一定的反射机制,请一并学之哦,谢谢大家支持!
首先,在构建好ssh框架后,我们先声明用来记录日志的实体类Log,代码如下:
package com.smartsoft.model;
import javax.persistence.Column;
import javax.persistence.Entity;
im...
分类:
编程语言 时间:
2015-04-10 11:33:58
阅读次数:
263
检查persistence.xml。提示说没找到我们申明的持久单元。
该行:vider>org.hibernate.ejb.HibernatePersistence
不存在于系统中,需要去hibernate网站
http://hibernate.o...
分类:
编程语言 时间:
2015-04-09 09:03:24
阅读次数:
166
在hibernate官方文档中给出了 如下注解方式:
5.1. Mapping declaration
Object/relational mappings can be defined in three approaches:
using Java 5 annotations (via the Java Persistence 2 annotations)
u...
分类:
Web程序 时间:
2015-04-06 17:20:56
阅读次数:
146
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2010, Red Hat Inc. or third-party contributors as * indicated by the @auth...
分类:
编程语言 时间:
2015-04-01 11:15:31
阅读次数:
135
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2010, Red Hat Inc. or third-party contributors as * indicated by the @auth...
分类:
编程语言 时间:
2015-04-01 11:13:49
阅读次数:
217
hibernate的对象有3种状态,分别为:瞬时态(Transient)、持久态(Persistent)、脱管态(Detached)。 处于持久态的对象也称为PO(Persistence Object),瞬时对象和脱管对象也称为VO(Value Object)。瞬时态由new命令开辟内存空间的jav...
分类:
Web程序 时间:
2015-03-28 18:34:24
阅读次数:
138
1、数据持久化l 持久化(persistence):把数据保存到可掉电式存储设备中以供之后使用,也称为“固化”。在大多数情况下,服务器或客户端应用中数据的持久化是通过关系型数据库来实现l 存储设备:磁盘、硬盘, U盘,光盘等l 存储形式:数据库、xml文件、txt文件等2、知识点2: Java 中的...
分类:
数据库 时间:
2015-03-27 21:58:24
阅读次数:
282