hibernate.query.factory_class= org.hibernate.hql.classic.ClassicQueryTranslatorFactory
抛CharScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlToken SessionImpl session = (SessionImpl)HibernateUtil.currentSession();
Transaction tx = session.beginTransaction();
session.delete("select c from Ecustomer as c where c.serialNo ="+serialNo);
String hqlUpdate = "update EaccountForm set customer_id =:customer_id ,customer_name = :customer_name where serial_no_ecustomer = :serial_no_ecustomer";
updatedEntities = session.createQuery( hqlUpdate )
.setString( "customer_id", customer_id )
.setString( "customer_name", customerName )
.setString( "serial_no_ecustomer", serial_no_ecustomer ) .executeUpdate(); tx.commit();
HibernateUtil.closeSession(); 这个代码在tomcat里面没问题!但是移值到weblogic 就出这个问题!网上搜了半天居然没有解决!有遇见同样问题的哥们请回答!
抛CharScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlToken SessionImpl session = (SessionImpl)HibernateUtil.currentSession();
Transaction tx = session.beginTransaction();
session.delete("select c from Ecustomer as c where c.serialNo ="+serialNo);
String hqlUpdate = "update EaccountForm set customer_id =:customer_id ,customer_name = :customer_name where serial_no_ecustomer = :serial_no_ecustomer";
updatedEntities = session.createQuery( hqlUpdate )
.setString( "customer_id", customer_id )
.setString( "customer_name", customerName )
.setString( "serial_no_ecustomer", serial_no_ecustomer ) .executeUpdate(); tx.commit();
HibernateUtil.closeSession(); 这个代码在tomcat里面没问题!但是移值到weblogic 就出这个问题!网上搜了半天居然没有解决!有遇见同样问题的哥们请回答!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货