对于一对多关联当中的List,需要在数据库里面维护一个index列,如果List当中的某个元素被删除,那么Hibernate会连续发送多条 update语句,更新后续所有元素的index列,以确保index的连续性(在inverse为false的情况下),如果你选择自己维护index 列,也同样会面临这个问题,甚至更棘手(在inverse为true的情况下),所以List被谨慎的使用在极其罕见的场合。 ...
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 ...
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
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 ...
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 ...
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 ...
JSP provides a set of implicit object variables for you. One of them is the 'application' variable. getServletContext().get.... can be replaced with: ...
uncaughtException(Thread t, Throwable e) Called by the Java Virtual Machine when a thread in this thread group stops because of an uncaught ...
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 ...