- 浏览: 30854 次
- 性别:
- 来自: 北京
最新评论
文章列表
1. div>p 是指: div直接子元素p, child of child is not applicable
2. div+p 是指: 相邻元素。
3. div[attr] {。。。}: div 的 属性 attr存在,就match 定义的css.
4. div[attr="a"], 也可以match 属性的值。
5.a[rel~='friend'], <a.. rel 属性如果match friend, 就apply the style.
6. 两个临近元素的margin会叠加。 e.g. obj.a {margin- ...
- 2009-11-09 21:48
- 浏览 485
- 评论(0)
Embedded Object
1. @embedded + @embeddable
2. inner component doesn have @embedded Tag is considered to be default, and Hibernate will search embeddable object for it.
Hibernate mapping
1. One to One
1.1 mapping primary key:
@OneToOne @PrimaryKeyJoinColumn
1.2 use foreign key;
...
7 Integration management process
1. Develop project Charter, sponser issue it to the project manager.
2. develop priminary scope statement
3. develop project management plan
4. DIRECT AND manage project execution
5. monitor and control project work
6. integrated change control
7. close proje ...
- 2009-09-08 20:12
- 浏览 619
- 评论(0)
Business interface
1. interfaces are excluded when determine whether bean has more than one interface: Serializable, Externalizable, any interface defined by javax.ejb.*
2. Same interface can not be used as Local and Remote interface
3. wont extend EJB(Local)Object, previous version 2.1 will do it ...
Spring IOC container can be accessed via two ways
1. BeanFactory - a simple factory to access bean
2. Applicationcontext - it has beanfactory functions + extra: message, internationalize, etc.
Bean creation
1. standard way: <bean name="xx" class="xxx"/>
2. static f ...
3 types of mapping for inheritance
map for each solid subclass (parent class is abstracted), can not support polymophy . e.g. "select from employ" wont retrieve hourly_employee and monthly_employee
Only one class with flag to differeniate children; support polymorphism "from emplo ...
evit
will remove object from session, and also the children if in the mapping file, defined as "all" or "all-delete-orphan"
suggest dont use evit often, as they can not improve performance much.
should use: lazy-loading, filter, project (select object element only, rather t ...
- 2009-08-23 20:12
- 浏览 382
- 评论(0)
(captured from a very good Hibernate Book, copyright belongs to the author)
First type lost
First transaction’s rollback overwrite second transaction’s update on same record
Second type lost
First transaction’s commit overwrite second transaction’s update on the same record
Dirty Rea ...
- 2009-08-20 09:14
- 浏览 366
- 评论(0)
Formula
(from : http://weishuwei.iteye.com/blog/68030)
1,formula ="()",里面的是sql语句,字段和表名都应该和数据库相应,而不是字段,若带有参数如cur.id= currencyID,这个currencyID才是对象的东东.2,formula ="( sql )",这个括号不能少,不然会报错,我试了几次,没括号就报错,添上就没问题3,操作字段一定要用别名
(from:http://www.cnblogs.com/iloveu/archive/2009/01/20/1378 ...
- 2009-08-11 10:32
- 浏览 815
- 评论(0)
hibernate configure
inverse = true
: parent side update wont have any result, on the reverse side, the changes will happen in database.
Session Lock
reattach the detached object
Session merge
1. dont associated the instance with session
2. If new object, will save ...
ust a summary from the article here: http://www.techfaq360.com/hibernate_interview_question
Difference between session.save() , session.saveOrUpdate() and session.persist()?
session.save() Save does an insert and will fail if the primary key is already persistent.
session.saveOrUpdate() : ...