
Java-Hibernate
文章平均质量分 81
iteye_242
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HIbernate符合Java习惯的关系数据库持久化之SessionFactory
What does sessionFactory.getCurrentSession() do? First, you can call it as many times and anywhere you like once you get hold of your org.hibernate.SessionFactory. The getCurrentSession()method ...原创 2010-02-01 22:08:32 · 104 阅读 · 0 评论 -
HIbernate符合Java习惯的关系数据库持久化之实例状态
An instance of a persistent class can be in one of three different states. These states are defined in relation to a persistence context. The Hibernate Session object is the persistence context....原创 2010-02-01 23:22:40 · 162 阅读 · 0 评论 -
HIbernate符合Java习惯的关系数据库持久化之Hibernate SQL方言
二进制流 (Binary Streams)Oracle limits the size of byte arrays that can be passed to and/or from its JDBC driver. If you wish to use large instances of binary or serializable ty...原创 2010-02-02 00:27:14 · 159 阅读 · 0 评论 -
HIbernate符合Java习惯的关系数据库持久化之Persistent
实现一个默认的(即无参数的)构造方法(constructor)Cathas a no-argument constructor. All persistent classes must have adefault constructor (which can be non-public) so that Hibernate caninstantiate ...原创 2010-02-02 09:42:09 · 183 阅读 · 0 评论 -
HIbernate符合Java习惯的关系数据库持久化之XML配置
[b]Hibernate-mapping[/b]1、schema (optional): the name of a database schema.2、catalog (optional): the name of a database catalog.数据库名称3、default-cascade (optional - defaults to none): a default ...原创 2010-02-02 10:40:09 · 175 阅读 · 0 评论 -
null value was assigned to a property ofhibernate(设置HIbernate属性)
关键字: null value was assigned to a property ofhibernate int型数据无法读取 问题描述:Null value was assigned to a property of primitive type setter ,hibernate int型数据无法读取 hiberante读int 整型数据出错 hiber...2010-04-23 16:01:06 · 174 阅读 · 0 评论 -
Hiberante分页,页数统计
今天做Extjs分页时,发现原来框架基于MSSQL的,打印处于举发现为利用select top 进行分页,而在mysql中使用select * from table limit ?,?.在网上进行查询这事Hibernate为了实现统一分页接口而在方言中进行封装.Oracle中通过Rownum是实现。个人认为可以在MSSQl 2005以上版本利用ROW_NUMBER(...2010-05-26 15:49:35 · 107 阅读 · 0 评论 -
Hibernate错误集锦及解决办法1
[b]1.case by: java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z[/b]网络上方法:1.hibernate-jpa-2.0-api-1.0.0.Final和ejb3-persistence有冲突,如果升级到 Hibernate3.5那么可以把ejb3-persistence干掉...2010-06-28 17:29:27 · 192 阅读 · 0 评论