Chinaunix首页 | 论坛 | 博客
  • 博客访问: 103621
  • 博文数量: 60
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 280
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-09 12:19
文章分类

全部博文(60)

文章存档

2015年(3)

2014年(41)

2013年(16)

我的朋友

发布时间:2014-04-15 16:26:58

Hibernate、Hibernate4获取SessionFactory对象方法的变化Hibernate用来获取配置文件的类是Configuration,若用Annotation的话就是AnnotationConfiguration类。例:Configuration config = new Configuration();config.configure("hibernate.cfg.xml");//用configure()方法取得。//或.........【阅读全文】

阅读(926) | 评论(0) | 转发(0)

发布时间:2014-04-14 23:39:37

01.java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z 02.    at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1837) 03.    at org.hibernate.cfg.AnnotationBinder.processIdPropertie.........【阅读全文】

阅读(828) | 评论(0) | 转发(0)

发布时间:2014-04-10 17:26:04

package com.study.test;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;import org.hibernate.boot.registry.StandardServiceRegistry;import org.hibernate.boot.registry.StandardServiceRegistryBuilder;import org.hibernate.cfg.AnnotationConfigura.........【阅读全文】

阅读(808) | 评论(0) | 转发(0)

发布时间:2014-04-10 17:25:29

SSH框架中Hibernate3必须依赖jar包(缺一不可)   2012-11-24 07:58:57|  分类: hibernate |  标签:hibernate  |举报|字号 订阅 hibernate3.jar: Hibernate的库,没有什么可说的,必须使用的jar包cglib-2.1.3.jar: CG.........【阅读全文】

阅读(319) | 评论(0) | 转发(0)

发布时间:2014-04-10 17:24:58

ContentUris是content URI的一个辅助类。它有两个方法很有用,具体如下所示。public static Uri withAppendedId(Uri contentUri, long id),这个方法负责把id和contentUri连接成一个新的Uri。比如在我们这个例子当中是这么使用 的:ContentUris.withAppendedId (Diary. DiaryColumns.CONTENT_URI, rowId)。如.........【阅读全文】

阅读(523) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册