01 2013 档案

摘要:Constant Pool Table is used to store literals and symbol references which would be loaded after loading class file.运行期间也可以将新的常量放入池中,例如String类的intern()方法。public String intern()Returns a canonical representation for the string object.A pool of strings, initially empty, is maintained privately by the c 阅读全文
posted @ 2013-01-31 23:47 Copyright 阅读(123) 评论(0) 推荐(0) 编辑
摘要:The N+1 Selects ProblemSolution:减少延迟映射:The best way of solving the N+1 selects problem is to keep your associations declared lazy by default, but override this behavior when you know the association is needed.JPQL LEFT JOIN FETCH批量:@BatchSize annotation makes loading multiple associations in one que 阅读全文
posted @ 2013-01-30 01:00 Copyright 阅读(243) 评论(0) 推荐(0) 编辑
摘要:1.Find maven in Eclipse Marketplace. The first matching item is the one we need. Install it!2.After installing maven plugins, select import then select the option 'Exsiting Maven Projects', then browser to the existing project folder.3.After imported the project, we can run the project by ch 阅读全文
posted @ 2013-01-29 22:29 Copyright 阅读(524) 评论(0) 推荐(0) 编辑
摘要:1. Entity里面的Annotation为什么都是加在getter上的?2. 除了getters和setters以外,我们也增加了一个addCommentToArt(Comment comment)方法,这是便于双向关联的一个方法,因为一个重要的事情是要在关联的两端都设置引用。为什么不放在DAO里?另外书中还强烈建议:在关系的一端创建这种“管理关联”的方法。3. 为什么在ArtEntity里使用Hashset来保存comments?4. Convention over Configuration。5. @Temporal。解释:http://hi.baidu.com/huangjiuyx/ 阅读全文
posted @ 2013-01-23 15:03 Copyright 阅读(210) 评论(0) 推荐(0) 编辑
摘要:Book name: PHP and MySQL Web Development 3rd, Luke Welling, Laura ThomsonLaura:女,墨尔本皇家理工大学的计算机讲师,也是Tangled Web Design公司的合伙人。Luke:资深web开发者,任职于MySQL AB公司,曾在墨尔本皇家理工大学任教。他们都获得了MySQL AB公司颁发的MySQL Core Certification,以及Zend公司颁发的Zend Certified PHP工程师。PHP访问表单变量3种具体访问方式取决于PHP的版本和php.ini设置。$username //自4.2.0版本 阅读全文
posted @ 2013-01-05 18:02 Copyright 阅读(177) 评论(0) 推荐(0) 编辑