-
2010-04-29
Thread restart - [Java]
If a java thread is finished, it should never be started again!
So in order to manager that, you must create a new thread instead.
-
2010-03-19
Hibernate Cache - [Hibernate]
First-level cache: Session level,内置,默认开启
Second-level cache: SessionFactory level,可选,有支持Ehcache,OScache等
二级缓存适用于很少修改的数据。
能够收益的查询两类:
(1)search by ID
(2)关联关系
Query cache基... -
2010-02-08
set default management IP for zyxel switch - [Other]
>configure
>vlan 1
>ip address default-management *.*.*.* 255.255.255.0
-
2010-02-07
maven build path in eclipse - [Tool]
Maven project sometimes not show build path correctyl in eclipse.
If use m2eclipse plugin, you should use "mvn eclipse:m2eclipse" to setup the project for m2eclipse plugin.
Refer to http://maven.apache.org/plugins/maven-eclips... -
2010-01-14
PostgreSQL installation problems - [Database]
PostgreSQL8.3 uninstall, then install PostgreSQL8.4 on WinXPSP2, alwayls install error.
最后发现不要使用Default locale就可以了。
-
2009-10-22
Hibernate List/Map inverse setting not work - [Hibernate]
对于有一端是<list>或者<map>的双向关联,需要加以特别考虑。假若子类中的一个属性映射到索引字段,没问题,我们仍然可以在集合类映射上使用inverse="true":
<class name="Parent">
<id name="id" column="parent_id"/>
....
<map name="children" inverse="true"... -
2009-10-09
java.lang.OutOfMemoryError: PermGen space - [Java]
According to james’ s email, system crahsed last night. I checked tomcat log and found Exception as follows:
in thread “com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0” java.lang.OutOfMemoryError: PermGen... -
2009-10-08
Hibernate Performance Tuning - [Hibernate]
Tuning tips:
(1)many-to-one/one-to-one with fetch="join" and lazy="false". Take care when using join fetch on colections.
(2)set fetch batch size to avoid n+1 selects
(3)subselect to reduce select sqls.
... -
http://www.laliluna.de/performance-tips-hibernate-java-persistence.html
This article is an extract of the chapter Performance of my book Hibernate and Java Persistence by Example.
The book is available in English as eBoo... -
2009-10-06
成功设计网站的50条建议 50 Tips on Web Design - [GUI]
Include your logo in all pages. Position it at the top left or each page.
确保每张网页的左上方出现logo。
· Complement your logo with a tagline or catchy sentence that summarizes your business purpose. For example “Always l... -
2009-10-04
logo/banner creator - [GUI]
aaa logo http://www.aaa-logo.com/
-
2009-10-04
Banner Maker - [GUI]
http://www.bannersnack.com/
http://banner.alimama.com/ -
2009-09-30
pgsql in Navicat lite - [Other]
Create functions->input parameter(arg1,arg2...),return type etc
Support sql/pgsql/c languages. -
Maven安装配置:
1.在PATH后加上就XXXX\maven-2.0\bin;%PATH%,输入mvn –version验证。
2.如果是代理服务器上网就,setting.xml
<proxies>
<proxy>
&n... -
2009-09-23
正确理解Hibernate Inverse(ZT) - [Java]
http://developer.51cto.com/art/200906/130088.htm
通过Hibernate Inverse的设置来决定是由谁来维护表和表之间的关系。最近有朋友问我Hibernate关于多对多关于删除中间表数据的问题,关键是Inverse的设置,下面引用网友的一篇文章。
Inverse是Hibernate双向关系中的基本概念,当然对于多数实体,我们并不需要双向关联,更多的可能会选择单向关联,况且我们大多数人 一般采用一... -
2009-09-17
Bullzip PDF - [Tool]
A wonderful PDF tool for convert Word etc to PDF.
A nother tool is PrimoPDF, but it needs .net installed, and error prone! -
2009-09-16
PayPalExpress VS IPN - [Other]
Many like the Express Checkout option because of its convenience.
Some are used to not having that option and stick with the older IPN option.
Express tends to get orders into your database more reliably, and faster.
-
2009-09-15
a different object with the same identifier value was already associated with the session - [Java]
在使用HibernateTemplate的时候遇到 public void deleteObject(T object) { object = (T) getHibernateTemplate().merge(object); getHib... -
2009-09-08
XMAPP+zen-cart - [PHP]
在XMAPP下安装zen-cart非常方便
1.解压zen-cart安装包
2.copy整个目录到xmapp/htdocs 例如zcart folder
3.open browser http://localhost/zcart/zc_install 开始安装过程,中间可能过报错说“CURL not compiled into PHP - notify server adm... -
2009-09-08
zen-cart,oscommerce?
Open source shopping cart...Based on PHP
-
http://www.theserverlabs.com/blog/2009/04/30/select-lists-with-validation-in-spring-mvc/
关于Spring MVC的PropertyEditor的用法很详细。







