Monday, February 6, 2012 7:31

Posts Tagged ‘Java’

Hibernate双向关联中常常用Set 而不用List

Friday, February 27, 2009 16:37

对于一对多关联当中的List,需要在数据库里面维护一个index列,如果List当中的某个元素被删除,那么Hibernate会连续发送多条 update语句,更新后续所有元素的index列,以确保index的连续性(在inverse为false的情况下),如果你选择自己维护index 列,也同样会面临这个问题,甚至更棘手(在inverse为true的情况下),所以List被谨慎的使用在极其罕见的场合。  ...

This was posted under category: Team Fight  |  Read Full Story  |  0 Comments

Spring开发过程中常用的模式

Friday, February 27, 2009 16:33

Exception Translator (...

This was posted under category: Team Fight  |  Read Full Story  |  0 Comments

Tomcat Out of Memory

Sunday, February 8, 2009 14:27

We always get out of memory error on Tomcat when the system occupy many memory resource. To avoid this, we can dedicate how much memory tomcat can use. 1. add JAVA_OPTS='-Xms1024m -Xmx1024m' in catalina.sh 2. add set JAVA_OPTS=-Xms128m -Xmx350m in catalina.bat 3. use tomcat service(tomcat.exe) which read JAVA_OPTS from regedit table. add -Xms1024m -Xmx1024m ...

This was posted under category: Java  |  Read Full Story  |  0 Comments

Java and XSLT

Friday, February 6, 2009 17:34

Reference: https://jaxp.dev.java.net/ http://en.wikipedia.org/wiki/Java_API_for_XML_Processing http://www.oreillynet.com/pub/a/oreilly/java/news/javaxslt_0801.html http://www.ling.helsinki.fi/kit/2004k/ctl257/JavaXSLT/Ch05.html http://www.ibm.com/developerworks/xml/library/x-injava/index.html

This was posted under category: Java  |  Read Full Story  |  0 Comments

MyEclipse UML plugin

Wednesday, January 14, 2009 17:27

I'd like to share some experiences about how to use myeclipse's uml plugin with you guys. 1.  in the class diagram, you have to edit the operation name manually to hidden the parameters 2.  if you want to export a picture with no grid backgroup, you should set it in the myeclipse's ...

This was posted under category: Java  |  Read Full Story  |  0 Comments

Performance of XSLT

Friday, January 9, 2009 16:18

Performance of XSLT One common critiscism of XSLT is its performance. The overhead of transformation from XML to another format is the price paid for clean separtion between data and programming logic, as well as the ability to customize transformations for different clients. There are some strategies for improving ...

This was posted under category: Java  |  Read Full Story  |  0 Comments

log4j study note

Monday, January 5, 2009 13:10

Log4j (Short introduction to log4j) =========================================================== Usage in Source Code ----------------------------------------------------------- Get Logger * Logger.getRootLogger()|Logger.getLogger(String loggerName) Print Methods: * public void debug(Object message);    // 7 * public void info(Object message);    // 6 * public void warn(Object message);    // 4 * public void error(Object message);    // 3 * public void fatal(Object message);    // 0 * public void log(Level,Object message);  // generic print method ----------------------------------------------------------- Configure File ----------------------------------------------------------- Logger ----------------------------------------------------------- log4j.rootLogger ...

This was posted under category: Java  |  Read Full Story  |  0 Comments

Application,session,request objects in jsp

Sunday, January 4, 2009 21:28

JSP provides a set of implicit object variables for you. One of them is the 'application' variable. getServletContext().get.... can be replaced with: ...

This was posted under category: Java  |  Read Full Story  |  0 Comments

uncaughtException

Sunday, January 4, 2009 13:54

uncaughtException(Thread t, Throwable e) Called by the Java Virtual Machine when a thread in this thread group stops because of an uncaught ...

This was posted under category: Java  |  Read Full Story  |  0 Comments

JavaFx is available now

Friday, December 19, 2008 8:19

JavaFX is an expressive rich client platform for creating and delivering rich Internet experiences across all the screens of your life. JavaFX offers users unparalleled freedom and flexibility to create rich Internet applications and content quickly and easily across multiple screens, including mobile phones, desktops, televisions, and other consumer ...

This was posted under category: IT Leading News, Java  |  Read Full Story  |  0 Comments