`
coolstar648
  • 浏览: 45905 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论
文章列表
(一)对象之间的关系: 1. 依赖: 依赖对象通过调用被依赖对象的方法来获得服务。一种比较松散的关系,并且是短期的。我们的过程与对象往往依赖与我们的实体域对象。如在Struts 的 action中调用模型层的方法。 2. 关联 它使一个类指到另一个类的属性。长期的 3. 聚合 聚合关系是关联关系的一种,是强的关联关系。聚合是整体和部分之间的关系。 4. 组合 也叫合成关系,组成关系是关联关系的一种,是比聚合关系强的关系。对象负责代表部分的对象的生命周期。 注:既然聚合,组合关系属于关联关系,那么如何区分一般关联关系,聚合关系和组合关系呢? 一般关联:只要一个对象联系到另外一个对象就形成了关联关系 ...
spring2與spring1的單例模式的配置區別 Spring 1.* <bean id="hibernateSessionFactory" class="org.hibernate.admin.component.HibernateSessionFactory" init-method="init" destroy-method="dispose" singleton="true"> Spring 2.0 spring-beans-2.0.dtd/xsd does not s ...
问题描述:Null value was assigned to a property of primitive type setter  ,hibernate int型数据无法读取 hiberante读int 整型数据出错 hiberante读数据库出错 错误日志: Exception in thread "main" org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.zsba.AdornCompan ...
SSH2的问题,超级郁闷! 悬赏:5 发布时间:2008-11-27 提问人:coolstar648 (初级程序员) 本来打算给自己写个个人主页,没想到,郁闷死.一个登录竟然搞了半天没搞定.不知道到底哪里有问题,debug也很久,很郁闷! 由于比较大,所以就简单的发一些吧,反正是可以跑起来的,我就帖点重要部分的代码好了。只给出部分函数: 首先:DAO层 Java代码 public boolean findUserByLNameAndPwd(String loginName, String passWord)           throws RuntimeException ...
在校生大三生,一直做JEE的项目,由于对Ruby的兴趣,买了本<<Rails CookBook>>,按照例子想做个Demo,刚接触由于不太熟悉,在NetBeans中开发,服务启动后:在http://localhost:3000/WebList 出错: Routing Error No route matches "/WebList" with {:method=>:get} 以下是目录与代码:(项目名为WebList) ~WebList/app/models/people.rb ------------------------------ ...
   喜欢Ruby,Ruby让我想起了以前的QBasic。简洁,实用,没有花架子,满足一般的需求,面像对象,我终于可以用人的思想,人的想法去编程了,类库强大,反正就是非常喜欢。 那段15分钟构件CRUD的视频对我很震撼。科技以人为本,似乎Ruby做到了。打算自己好好的打牢Ruby基础,之后利用Ruby on Rails做一个项目。     Java EE,我为你的未来而担忧啊~
解决方法一:(最重要的一种方法) 你看下my.ini,有无 [mysql] default-character-set=utf8 [client] default-character-set=utf8 [mysqld] default-character-set=utf8 然后建立表时,也要用(比如) DROP   TABLE   IF   EXISTS   `Company`; CREATE   TABLE   IF ...
下载软件: MySQL Server 5.0.18 http://dev.mysql.com/downloads/mysql/5.0.html 下载MySQL Server,并安装在本地机器上。 下面两个为Windows图形界面工具。 MySQL Query Browser 1.1.20 http://dev.mysql.com/downloads/query-browser/1.1.html MySQL Control Center 0.9.4 http://mys ...
i'm angry because i don't good at the basic java.So,I'm working hard on studying basic java now.First,i bought a book in the culture market yesterday. In the following part of this passage,i will write something about Data-Structures. 1,About method LENGTH. I believe many people think that LE ...
Global site tag (gtag.js) - Google Analytics