`
文章列表
薏苡仁山楂红豆粥   薏苡仁、干山楂、粳米各30克,红豆20克。先将薏苡仁、红豆洗净加水适量浸泡1小时后蒸熟,用山楂加水适量与粳米煮粥,粥将熟时,倒入蒸熟的薏苡仁、红豆再煮5~10分钟即可食用。每日早晚当主食吃,可健脾祛湿、降脂减肥。
薏苡仁山楂红豆粥   薏苡仁、干山楂、粳米各30克,红豆20克。先将薏苡仁、红豆洗净加水适量浸泡1小时后蒸熟,用山楂加水适量与粳米煮粥,粥将熟时,倒入蒸熟的薏苡仁、红豆再煮5~10分钟即可食用。每日早晚当主食吃,可健脾祛湿、降脂减肥。
CORRELATED SUBQUERIES STEPS PERFORMED BY THE CORRELATED SUBQUERY:    1.Select a Row from the Outer Query    2.Determine the value of the correlated column(s)    3.For each record of the outer query, the inner query is executed    4.The result of the inner query is then fed to the outer query and ev ...
hibernate中inverse=true粗解 一个Person可以参加多个Event,一个Event有多个Person参加。 映射文件如下: <!-- Person.hbm.xml --> <hibernate-mapping package="events">   <class name="Person" table="person">       <id name="id" column="person_id">           < ...
抽象类和接口的区别 在 Java语言中, abstract class 和interface 是支持抽象类定义的两种机制。正是由于这两种机制的存在,才赋予了Java强大的 面向对象能力。abstract class和interface之间在对于抽象类定义的支持方面具有很大的相似性,甚至可以相互替换,因此很多开发者在进行抽象类定义时对于 abstract class和interface的选择显得比较随意。其实,两者之间还是有很大的区别的,对于它们的选择甚至反映出对于问题领域本质的理解、对于设计意图的理解是否正确、合理。本文将对它们之间的区别进行一番剖析,试图给开发者提供一个在二者之间进行选择的依据 ...
chapter 1
1. when to use attribute? difference of attribute and element. use elements for multiple-valued data and attributes for single-valued data 2. dtd, only structure validation. xml schema also have data validation
二十年前,我初行医的时候,颈椎病是四十岁以后的人的专利,但现在不是了,二三十岁的颈椎病患者到处都是,我甚至见过的颈椎病的小学生!原因很简单:伏案久了,压力大了,自己又不懂得怎么调理,所以颈椎病提前光临 ...
chapter 5: developing a data model 1. attribute, class and relationship 2. two or more relationship between class: cause by a special member or historical data 3. different routes of classes    1.avoid data redundancy, can not have two route to get a answer.data will be inconsistent.    2.two or rela ...
Object-Oriented Analysis and Design, Part 1 Object-Oriented design is easy once you learn how to identify the right objects. By Alistair Cockburn, with C++ code by Chuck Allison,  C/C++ Users Journal May 01, 1998 URL:http://www.ddj.com/cpp/184403494 Introduction "If you have done an object-o ...

review OOA&D

Ch1. 1. do what customer what. meet the requirement is always the first priority. 2. then think about using basic OO principle and design pattern 3. encapsulation also for code reuse. encapsulate what varies. 4. delegation. instead of doing the action, forward to another object to do the action. 5. ...
本文主要讨论了用dom4j解析XML的基础问题,包括建立XML文档,添加、修改、删除节点,以及格式化(美化)输出和中文问题。可作为dom4j的入门资料。 1. 下载与安装 dom4j是sourceforge.net上的一个开源项目,主要用于对XML的解析。从2001年7月发布第一版以来,已陆续推出多个版本,目前最高版本为1.5。 dom4j专门针对Java开发,使用起来非常简单、直观,在Java界,dom4j正迅速普及。 可以到http://sourceforge.net/projects/dom4j下载其最新版。 dom4j1.5的完整版大约13M,是一个名为dom4j-1.5.zip ...

Q&A

1. redo, xml file changed or db. eg. changed by another thread. formbean presented data which has no state will not change. how to reflect the change.
在 struts+ hibernate 这种结构中,是不应该把Hibernate产生的PO直接传递给JSP的,不管他是Iterator,还是List,这是一个设计错误。 我来谈谈在J2EE架构中各层的数据表示方法: Web层的数据表示是FormBean,数据来源于HTML Form POST 业务层的数据表示是VO 持久层的数据表示是PO,其数据来源于数据库,持久层的数据表示例如CMP 在一个规范的J2EE架构中,不同层的数据表示应该被限制在层内,而不应该扩散到其它层,这样可以降低层间的耦合性,提高J2EE架构整体的可维护性和可扩展性。比如说Web层的逻辑进行了修改,那么只需要修改Form ...
Global site tag (gtag.js) - Google Analytics