2015年4月24日
摘要: 要擅于利用对象之间映射的集合去查与其关联的对象,而不是直接在dao层重新写查询的方法,其实,hibernate正是对复杂查询的一种解放,既然有现成的东西,何必再去闭门造车,而且造出来的还是个旧车。查询给定目录id下的所有试卷:public Pagination getPage(EmPaperCata... 阅读全文
posted @ 2015-04-24 09:22 Simle 阅读(144) 评论(0) 推荐(0)
摘要: Space is not allowed after parameter prefix ':' [from EmPaperCatalogDef e where e.parentId =: pcdId] 阅读全文
posted @ 2015-04-24 09:19 Simle 阅读(213) 评论(0) 推荐(0)