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 · 119 阅读 · 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 · 177 阅读 · 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 · 172 阅读 · 0 评论 -
HIbernate符合Java习惯的关系数据库持久化之Persistent
实现一个默认的(即无参数的)构造方法(constructor) Cat has a no-argument constructor. All persistent classes must have a default constructor (which can be non-public) so that Hibernate can instantiate ...原创 2010-02-02 09:42:09 · 193 阅读 · 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 · 191 阅读 · 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 · 188 阅读 · 0 评论 -
Hiberante分页,页数统计
今天做Extjs分页时,发现原来框架基于MSSQL的,打印处于举发现为利用select top 进行分页,而在mysql中使用 select * from table limit ?,?. 在网上进行查询这事Hibernate为了实现统一分页接口而在方言中进行封装.Oracle中通过Rownum是实现。 个人认为可以在MSSQl 2005以上版本利用 ROW_NUMBER(...2010-05-26 15:49:35 · 117 阅读 · 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 · 197 阅读 · 0 评论
分享