Hibernate: insert into test.student (STUNAME, AGE, SEX, PHONE) values (?, ?, ?, ?) java.lang.RuntimeException at com.stu.server.StudentServer.addStudentByCondition(StudentServer.java:30) at com.stu.server.StudentServer$$FastClassByCGLIB$$8fef4d1a.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:696) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:631) at com.stu.server.StudentServer$$EnhancerByCGLIB$$f5f4d830.addStudentByCondition(<generated>) at com.stu.test.Test.main(Test.java:33) Hibernate: update test.student set STUNAME=?, AGE=?, SEX=?, PHONE=? where ID=?