`
文章列表
web programming - search, copy and paste
软件开发的单元测试是IT业界的新宗教,尤其对于软件开发人员。   但是软件开发的单元测试是不是一必需的呢?对于算法及通用的库类,单元测试可能是需要的。 但你为什么要测试SpringMVC Controllers呢?   单元测试保守估 ...
当人们忙于一件事的时候,就想把它干完,但却往往忘记了最初为什么要干这件事。 就像有些单元测试,甚至比原代码更复杂,更难读,更难维护。然而又有多少问题是通过单元测试发现的呢?很少。那么单元测试的目的是什么,你为什么要写单元测试,尤其是为什么要写那么复杂的单元测试?   计算机,最初就如同它的名字,只是个高级计算器而已。我们开发软件,最初的目的,可能也只是自动化一些业务处理而已。然而今天软件开发的终极目的又是什么?当你停下来,回头看看,也许有不同的感觉。软件开发终极目标,在本文看来,在于人工智能。最终也许要实现一个能够学习,感知,积累,判断,并能够付诸行动的系统。是的,就是要开发出有学习能 ...
If you need to set an external folder to Tomcat, you can do that in "setclasspath.bat" (windows). At the end of this file, change the last few lines to the following:   :end set CLASSPATH=%CLASSPATH%;/path-to-your-external-folder exit /b 0    
You can create a file "setenv.bat" (windows) for Tomcat 7 to pickup on startup to configure memory size and enable debugging etc. File path should be Tomcat7_installation_dir/bin/setenv.bat   Its content is like:   set CATALINA_OPTS=-Xms1024M -Xmx2048m -XX:MaxPermSize=1024m -agentlib: ...
Node.js is a new platform for web application developement. It's JavaScript on the server side, running on Google's V8 JavaScript runtime. It's event driven and employs call back method to achieve non-blocking IO. It has great performance advantage and claims to be suitable for Data Intensive and R ...
    you might want to do the following highlighted code as:     whereClause.append("f.id IN (:fleetIdsList)");      .....          query.setParameter("fleetIdsList", fleetIdsList);            But it only works for JPQL not for Native queries, since JPA native query does not ...
PostgreSQL internal variable ON_ERROR_STOP defaults to 0 for interactive common execution, such as the client program psql.   So if you execute multiple statements in a script, if an earlier statement had errors, it would not stop executing the remaining sql statements, although it shows some err ...
愚蠢地忙了一天,结果似乎什么也没干成。 当然,这比愚蠢地忙了一天,把很多东西搞砸了强点儿。
Entity relationships may be bidirectional or unidirectional. A bidirectional relationship has both an owning side and an inverse side. A unidirectional relationship has only an owning side. The owning side of a relationship determines the updates to the relationship in the database.   The follo ...
you might want to create a JPQL like this: String sql = "select distinct s from Student s order by :orderByColumn asc" Query query = em.createQuery(sql); query.setParameter("orderByColumn", "name"); return query.getResultList();  However, the "order by" ...
lots.   for instance the first time you deploy something, it seems not working at all, u need to repeat for couple of times.   for instance, the Glassfish 3.1.2 app server cannot login properly into its admin web app on windows installations.   the netbeans ide is painful to use if you used e ...
就是不喜欢什么,就偏让你干什么。现在要搞SringMVC 3,jQuery, jqGrid。你说草蛋不?!
http://hginit.com
If we want to select the Orders whose price is greate than 100, we can use this JPQL query:   select o from Order o where o.price > 100 Here "o.price" is used to refer to the property "price" of JPA entity "Order". This expression is called "Path Expression& ...
Global site tag (gtag.js) - Google Analytics