
hibernate
文章平均质量分 74
gmemai
这个作者很懒,什么都没留下…
展开
-
Hibernate – Many-to-Many example (Annotation)
In this tutorial, it will reuse the entire infrastructure of the previous “Hibernate many to many example – XML mapping” tutorial, enhance it to support Hibernare / JPA annotation.Project StructureRevi转载 2015-09-08 17:26:00 · 829 阅读 · 0 评论 -
解决 spring mvc 3.0 结合 hibernate3.2 使用<tx:annotation-driven>声明式事务无法提交的问题
1、问题复现spring 3.0 + hibernate 3.2 spring mvc使用注解方式;service使用@service注解 事务使用@Transactional事务配置使用 <tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" /> 在插入或更新数据时转载 2015-09-18 22:35:38 · 686 阅读 · 0 评论 -
Difference between a hibernate transaction and a database transaction
Is there a difference between the two? For example within a hibernate transaction we can access the database, run some java code and then access the database again. We can’t do that within a transactio转载 2015-09-19 01:13:33 · 324 阅读 · 0 评论 -
How to call stored procedure in Hibernate
In this tutorial, you will learn how to call a store procedure in Hibernate.MySQL store procedureHere’s a MySQL store procedure, which accept a stock code parameter and return the related stock data.DE转载 2015-10-22 17:25:57 · 1103 阅读 · 0 评论 -
Ehcache 整合Spring 使用页面、对象缓存
EHCache支持内存和磁盘的缓存,支持LRU、LFU和FIFO多种淘汰算法,支持分布式的Cache,可以作为Hibernate的缓存插件。同时它也能提供基于Filter的Cache,该Filter可以缓存响应的内容并采用Gzip压缩提高响应速度。一、准备工作1、 下载jar包Ehcache 对象、数据缓存:http://ehcache.org/downloads/destination?name=转载 2015-09-16 00:26:54 · 339 阅读 · 0 评论 -
Understanding hibernate first level cache with example
Caching is a facility provided by ORM frameworks which help users to get fast running web application, while help framework itself to reduce number of queries made to database in a single transaction.转载 2015-09-16 00:12:57 · 432 阅读 · 0 评论 -
Hibernate EhCache configuration tutorial
Caching is facility provided by ORM frameworks which help users to get fast running web application, while help framework itself to reduce number of queries made to database in a single transaction. Hi转载 2015-09-16 00:03:40 · 401 阅读 · 0 评论 -
Hibernate – One-to-One example (Annotation)
In this tutorial, it will reuse the entire infrastructure of the previous “Hibernate one to one relationship example – XML mapping” tutorial, enhance it to support Hibernate / JPA annotation.Project St转载 2015-09-08 16:43:56 · 298 阅读 · 0 评论 -
Hibernate – One-to-Many example (Annotation)
In this tutorial, it will reuse the entire infrastructure of the previous “Hibernate one to many relationship example – XML mapping” tutorial, enhance it to support Hibernate / JPA annotation.Project S转载 2015-09-08 16:54:03 · 407 阅读 · 0 评论 -
Hibernate – One-to-Many example (XML Mapping)
A one-to-many relationship occurs when one entity is related to many occurrences in another entity.In this tutorial, we show you how to works with one-to-many table relationship in Hibernate, via XML m转载 2015-09-08 16:50:07 · 584 阅读 · 0 评论 -
Maven 3 + Hibernate 3.6 + Oracle 11g Example (Annotation)
This tutorial will reuse and modify the previous Hibernate3.6 XML mapping tutorial, but replace the Hibernate mapping file (hbm) with Hibernate / JPA Annotation code.Technologies in this article :Mave转载 2015-09-07 10:31:04 · 377 阅读 · 0 评论 -
Maven 2 + Hibernate 3.2 + MySQL Example (XML Mapping)
This quick guide show you how to use Maven to generate a simple Java project, and uses Hibernate to insert a record into MySQL database.Tools & technologies used in this article :Maven 2.2.1JDK 1.6.0转载 2015-09-07 10:09:48 · 382 阅读 · 0 评论 -
Hibernate – Many-to-Many example (XML Mapping)
Many-to-many relationships occur when each record in an entity may have many linked records in another entity and vice-versa.In this tutorial, we show you how to work with many-to-many table relationsh转载 2015-09-08 17:06:17 · 346 阅读 · 0 评论 -
Hibernate – One-to-One example (XML Mapping)
A one-to-one relationships occurs when one entity is related to exactly one occurrence in another entity.In this tutorial, we show you how to work with one-to-one table relationship in Hibernate, via X转载 2015-09-08 16:28:23 · 366 阅读 · 0 评论 -
hibernate学习笔记3--事务管理
1、只涉及到简单的业务流程(每个业务只涉及一个dao操作) 此时不需要service层,只要dao就够了。 例子: public void insertUser(Users user) { Session session=SessionFactory.openSession(); Transaction ts=session.beginTransac转载 2015-09-20 22:06:57 · 344 阅读 · 0 评论