org.hibernate.MappingException: No Dialect mapping for JDBC type: 3 仔细查看,发现问题在于数据类型.到网上查,发现hibernate在执行List result = session.createSQLQuery(sql).list()的时候,当SQL语句中遇到的decimal,long等类型的字段时,就出现上面的错误.而且从错误信息中可以发现:出错的是Dialect. 解决办法: 错误知道以后,我就到网上找解决办法.看来遇到这类问题的人太多了,网上到处都有人贴这个问题.我看了几篇,发现有个解决办法,就是自定义Hib ...
Hibernate save 在 session 中已存在相同 OID(主键) 的对象,会出现异常,详细内容如下: Exception in thread "main" org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.unmi.LoanDetail#1] at org.hibernate.event.def.AbstractSaveEventListener.per ...
2008-05-02

Eclipse 3.3 and GlassFish Java EE 5 integration

关键字: eclipse, glassfish, java ee5
转载自:https://glassfishplugins.dev.java.net/eclipse33/index.html Download the Eclipse IDE 3.3 for Java Enterprise Developers (122Mb) (tools for Java Developers creating JEE and Web applications, including a Java IDE, tools for JEE and JSF, Mylyn and others...: [url]http://www.eclipse.org/downloads/[u ...
2008-05-02

glassfish性能配置

关键字: glassfish
为了使glassfish在产品环境中运行的更快,可以调整一些参数来提高性能:   Java虚拟机参数将-client改为-server。   根据服务器的内存大小调整堆使用参数,如果服务器内存为2G,可以调整堆内存为-Xms1024m, -Xmx1024m。   一般应用服务器发布程序后页面不需要经常更改,网站改版后可以重新发布,所以可以禁用页面和类自动检测功能。   glassfish的自动发布功能在开发时很有用,不过正式的网站服务器上可以禁用此功能来避免线程检测,提高性能。   为了提高并发连接数,需要增大线程数,默认的最大线程数一般比较小,glassfish最大为20。   提 ...
jackytang520
搜索本博客
我的相册
2ee9f3fa-178a-3292-859f-60db9b995272-thumb
image031
共 53 张
存档
最新评论