Spring
文章平均质量分 57
majkandy
这个作者很懒,什么都没留下…
展开
-
Spring+Hibernate分页
public List findByLikeOrderByDesc(final String hql, final String orderBy, final int firstRow, final int maxRow, final Object[] o) throws Exception ...{ return getHibe原创 2007-05-10 17:16:00 · 616 阅读 · 0 评论 -
Spring+Hibernate配置事务
XML配置文件xml version="1.0" encoding="UTF-8"?>beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springfr原创 2007-05-10 20:59:00 · 2835 阅读 · 0 评论 -
Spring事务说明
PROPAGATION_REQUIRED--支持当前事务,如果当前没有事务,就新建一个事务。这是最常见的选择。 PROPAGATION_SUPPORTS--支持当前事务,如果当前没有事务,就以非事务方式执行。 PROPAGATION_MANDATORY--支持当前事务,如果当前没有事务,就抛出异常。 PROPAGATION_REQUIRES_NEW--新建事务,如果当前存在事务,把当前事务挂起。原创 2007-05-11 10:12:00 · 590 阅读 · 0 评论