1、错误描述
freemarker处理哈希表的内建函数
张三强
Expected collection or sequence. maps evaluated instead to freemarker.core.HashLiteral$SequenceHash on line 13, column 17 in map.ftl....
分类:
其他好文 时间:
2014-06-20 12:34:57
阅读次数:
392
1、错误描述
六月 04, 2014 10:31:47 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Expected number, sequence, or string. maps evaluated instead to freemarker.core.Hash...
分类:
其他好文 时间:
2014-06-20 11:26:40
阅读次数:
303
在Hibernate中,持久化对象在被操作的过程中可以分为三个时期,这三个时期是和Session的周期相关的,因为Hibernate中的操作都是基于Session完成的。Session的特定方法能使对象从一个状态转换到另一个状态。
持久化对象的生命周期有三种,瞬时状态、持久状态和分离状态。如下图:
瞬时态
不曾进行持久化,未与任...
分类:
系统相关 时间:
2014-06-20 10:16:36
阅读次数:
471
简单的hibernate例子,不涉及jsp页面,直接java代码运行java类:HibernateUtilpackage dao;import
org.hibernate.Session;import org.hibernate.SessionFactory;import
org.hibernate...
分类:
系统相关 时间:
2014-06-13 14:13:10
阅读次数:
297
assined 主键的值 程序指定uuid
hibernate帮你生成uuid,所以主键必须为StringIdentity
数据库表必须支持自动增长,新的主键的产生是由数据库完成的,并不是由hibernate或者程序员完成的increment 递增加11 2 ...
分类:
其他好文 时间:
2014-06-11 21:49:09
阅读次数:
390
复合主键的使用其实很简单,但是需要注意对象需要被拆分,主键自己需要一个类并且该类需要实现java.io.Serializable接口,其它的属性再重新生成新类,并且类的属性中要有主键类的对象,相应的只需要一个配置文件,在映射文件中使用指明主键,并指明主键的属性。...
分类:
系统相关 时间:
2014-06-07 16:31:42
阅读次数:
264
在Spring 3 中,对表单提交的校验方式比较常见的有两种
(1)基于注解:对于简单的属性校验,例如,长度,非空等,可以使用Spring,或是Hibernate自带的校验注解
(2)自定义校验类:对于复杂的业务校验可以自定义校验类,该类继承自org.springframework.validation.Validator
(3)前台JS校验
增加表单校验功能大概分一下几个...
分类:
编程语言 时间:
2014-06-07 14:24:32
阅读次数:
314
题目
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict =...
分类:
其他好文 时间:
2014-06-07 13:53:28
阅读次数:
247
atitit. 解决org.hibernate.SessionException Session is closed
#--现象::
org.hibernate.SessionException Session is closed
一呱走中个.
#--原因
2.eichkyeu e, log hteu yva parse token e... cheocho sh ...
分类:
系统相关 时间:
2014-06-07 12:27:37
阅读次数:
229
atitit。 hb Hibernate sql 查询使用
#----------返回list法..这个推荐使用。
q.setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP);
List li=q.list();
作者 老哇的爪子 Attilax 艾龙, EMAIL:14665...
分类:
数据库 时间:
2014-06-07 12:07:58
阅读次数:
246