1. 程式人生 > >JPA中hibernate的資料無法插入卻不報錯(JPA儲存boolean值)

JPA中hibernate的資料無法插入卻不報錯(JPA儲存boolean值)

2017-03-26 20:17:840 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Found 'equals' method: public boolean java.lang.Object.equals(java.lang.Object)
2017-03-26 20:17:840 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Unable to apply any optimisations to advised method: public java.lang.String java.lang.Object.toString()
2017-03-26 20:17:840 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Found 'hashCode' method: public native int java.lang.Object.hashCode()
2017-03-26 20:17:841 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Unable to apply any optimisations to advised method: protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException
2017-03-26 20:17:841 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract int org.springframework.aop.framework.Advised.indexOf(org.springframework.aop.Advisor)
2017-03-26 20:17:841 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract int org.springframework.aop.framework.Advised.indexOf(org.aopalliance.aop.Advice)
2017-03-26 20:17:841 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.isFrozen()
2017-03-26 20:17:842 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.setTargetSource(org.springframework.aop.TargetSource)
2017-03-26 20:17:842 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.addAdvisor(org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException
2017-03-26 20:17:842 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.addAdvisor(int,org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException
2017-03-26 20:17:843 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.isExposeProxy()
2017-03-26 20:17:843 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract java.lang.Class[] org.springframework.aop.framework.Advised.getProxiedInterfaces()
2017-03-26 20:17:843 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.isInterfaceProxied(java.lang.Class)
2017-03-26 20:17:843 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.replaceAdvisor(org.springframework.aop.Advisor,org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException
2017-03-26 20:17:843 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract java.lang.String org.springframework.aop.framework.Advised.toProxyConfigString()
2017-03-26 20:17:844 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.addAdvice(int,org.aopalliance.aop.Advice) throws org.springframework.aop.framework.AopConfigException
2017-03-26 20:17:844 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.addAdvice(org.aopalliance.aop.Advice) throws org.springframework.aop.framework.AopConfigException
2017-03-26 20:17:844 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.isPreFiltered()
2017-03-26 20:17:844 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract org.springframework.aop.Advisor[] org.springframework.aop.framework.Advised.getAdvisors()
2017-03-26 20:17:844 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.removeAdvisor(int) throws org.springframework.aop.framework.AopConfigException
2017-03-26 20:17:845 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.removeAdvisor(org.springframework.aop.Advisor)
2017-03-26 20:17:845 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.removeAdvice(org.aopalliance.aop.Advice)
2017-03-26 20:17:845 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract org.springframework.aop.TargetSource org.springframework.aop.framework.Advised.getTargetSource()
2017-03-26 20:17:845 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.isProxyTargetClass()
2017-03-26 20:17:845 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.setPreFiltered(boolean)
2017-03-26 20:17:846 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.setExposeProxy(boolean)
2017-03-26 20:17:846 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Method is declared on Advised interface: public abstract java.lang.Class org.springframework.aop.TargetClassAware.getTargetClass()
2017-03-26 20:17:872 | DEBUG | org.springframework.beans.factory.support.DefaultListableBeanFactory.createBean() - Finished creating instance of bean 'userService'
2017-03-26 20:17:877 | DEBUG | org.springframework.beans.factory.support.DefaultListableBeanFactory.getSingleton() - Creating shared instance of singleton bean 'transactionManager'
2017-03-26 20:17:877 | DEBUG | org.springframework.beans.factory.support.DefaultListableBeanFactory.createBean() - Creating instance of bean 'transactionManager'
2017-03-26 20:17:878 | DEBUG | org.springframework.beans.factory.support.DefaultListableBeanFactory.doCreateBean() - Eagerly caching bean 'transactionManager' to allow for resolving potential circular references
2017-03-26 20:17:887 | DEBUG | org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBean() - Returning cached instance of singleton bean 'entityManagerFactory'
2017-03-26 20:17:887 | DEBUG | org.springframework.beans.factory.support.DefaultListableBeanFactory.invokeInitMethods() - Invoking afterPropertiesSet() on bean with name 'transactionManager'
2017-03-26 20:17:889 | DEBUG | org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBean() - Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'
2017-03-26 20:17:892 | DEBUG | org.springframework.beans.factory.support.DefaultListableBeanFactory.createBean() - Finished creating instance of bean 'transactionManager'
2017-03-26 20:17:897 | DEBUG | org.springframework.orm.jpa.JpaTransactionManager.getTransaction() - Creating new transaction with name [com.longqi.wsshp.service.UserService.save]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT
2017-03-26 20:17:971 | DEBUG | org.hibernate.stat.internal.StatisticsInitiator.initiateServiceInternal() - Statistics initialized [enabled=false]
2017-03-26 20:17:975 | DEBUG | org.springframework.orm.jpa.JpaTransactionManager.doBegin() - Opened new EntityManager [
[email protected]
] for JPA transaction
2017-03-26 20:17:978 | DEBUG | org.hibernate.engine.transaction.internal.TransactionImpl.begin() - begin
2017-03-26 20:17:981 | DEBUG | org.springframework.orm.jpa.JpaTransactionManager.doBegin() - Exposing JPA transaction as JDBC transaction [org.springframewo[email protected]
1ae3c86b]
2017-03-26 20:17:027 | DEBUG | org.hibernate.SQL.logStatement() - select nextval ('hibernate_sequence')
Hibernate: select nextval ('hibernate_sequence')
2017-03-26 20:17:043 | DEBUG | org.hibernate.id.enhanced.SequenceStructure.getNextValue() - Sequence value obtained: 1
2017-03-26 20:17:044 | DEBUG | org.hibernate.resource.jdbc.internal.ResourceRegistryStandardImpl.release() - HHH000387: ResultSet's statement was not registered
2017-03-26 20:17:045 | DEBUG | org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId() - Generated identifier: 1, using strategy: org.hibernate.id.enhanced.SequenceStyleGenerator
2017-03-26 20:17:054 | DEBUG | org.hibernate.jpa.spi.AbstractEntityManagerImpl.markForRollbackOnly() - Mark transaction for rollback
2017-03-26 20:17:055 | DEBUG | org.springframework.orm.jpa.JpaTransactionManager.processRollback() - Initiating transaction rollback
2017-03-26 20:17:055 | DEBUG | org.springframework.orm.jpa.JpaTransactionManager.doRollback() - Rolling back JPA transaction on EntityManager [
[email protected]
]
2017-03-26 20:17:055 | DEBUG | org.hibernate.engine.transaction.internal.TransactionImpl.rollback() - rolling back
2017-03-26 20:17:059 | DEBUG | org.springframework.orm.jpa.JpaTransactionManager.doCleanupAfterCompletion() - Closing JPA EntityManager [[email protected]] after transaction

相關推薦

JPAhibernate資料無法插入JPA儲存boolean

2017-03-26 20:17:840 | DEBUG | org.springframework.aop.framework.CglibAopProxy.accept() - Found 'equals' method: public boolean java.lang.Object.equals(jav

重複資料去重只保留一份id較小的

查詢店員表w_other_empl中身份證號ss_id重複的數量 select t.ss_id,count(t.ss_id) from w_other_empl t group by ss_id having count(t.ss_id)>1 order by ss_id;

IDEA,Maven專案POM檔案的依賴未出現紅色波浪線,但Maven Projects的模組的Dependencies的依賴

問題描述:   IDEA中,Maven專案POM檔案中的依賴未報錯(出現紅色波浪線),但Maven Projects中模組的Dependencies依賴卻報錯。 問題出現的場景:   將本地Maven倉庫的地址從C盤更換到其他盤,新倉庫中jar包存在。 問題分析:   1、

Tomcat無法啟動但原因分析

今天執行Tomcat是忽然發現啟動不了了,不知道什麼原因,於是在網上搜了不少答案,但都沒解決問題,最後自己慢慢摸索終於解決了,在這裡總結一下自己所遇到的問題, 在啟動Tomcat時顯示如下 十月 13, 2016 9:35:59 上午 org.apac

jsp前端頁面無法展示但

我在頁面上一點選查詢,瀏覽器上不提示任何錯誤但是無法請求到資料,伺服器提示如下: 2017-4-19 10:09:27 org.apache.jasper.compiler.TldLocationsCache tldScanJar 資訊: At least one JAR

Nginx無法啟動也

非安裝Nginx,使用start nginx.exe命令啟動,但是沒有開啟下圖所示的兩個執行緒 說明Nginx並沒有啟動。 解決辦法: 1.檢視是否80埠被其他程式佔用 詳細見http://jin

eclipse使用pullgit提交沖突

lips style bsp local nbsp 直接 再次 鼠標 eclips 1、工程->Team->pull:報錯 解決方案: 2、工程->Team->Syschronize Workspace: 3、在左側會將有沖突的代碼列舉出來;(

vue無法啟動伺服器,npm run dev 問題

vue 專案報錯大全(一) vue報錯:無法啟動伺服器,報錯(npm run dev 報錯問題) #出錯背景 自己搭建的vue框架,在搭建好一個專案時忽然報錯(在此之前其他專案正常執行中,搭建了新的專案啟動服務時啟動不了了。 #報錯程式碼 Invalid con

Eclipse匯入Web專案後代碼但專案左上角有紅叉解決方案

    在學習別人的專案時,匯入Web專案到Eclipse中時程式碼不報錯但專案報錯(左上角有紅叉)。開發環境:J2EE5+JDK8,IDE使用Eclipse開發,程式碼檔案沒有任何報錯,不管是java檔案、jsp檔案還是xml檔案,總之專案下的任何檔案都是正常的,沒有任何報

hibernate呼叫sessionFactory.getCurrentSession().save(entity);資料無法插入到資料庫

       今天在學習使用hibernate4,在呼叫sessionFactory.getCurrentSession().save(entity);進行儲存操作時,方法執行成功,但是資料沒有插入到

重學資料結構 將Lb純在但在La資料元素插入到La

#include<stdio.h> #include<string.h> int main() { char La[200],Lb[200]; int lena,lenb,

MyBatissqlSession操作數據庫,無法實現數據修改增、改、刪

修改 () brush light pub clas java bat job public void addCustomerTest() throws Exception { SqlSession sqlSession = MyBatisUtils.ge

mysql設定id為主鍵且設定自增長時插入資料無法插入解決

當你遇到這個問題的時候你可能會有以下幾個解決方案 1.插入資料時將id值設為"null"或者是" " 如:insert into biao1 values(''null",列值1,列值2); 經過測試之後你發現這種方法不行 2.指定插入資料名 如insert into biao1

spring整合了mybatis、shiro,寫的授權認證方法一直無法執行的問題

今天發現一個奇怪的問題,就是在service實現類寫了這麼一個方法: @RequiresPermissions(“sys:user:update”) @Override public int validById(Integer id, Integer valid

Android 使用Sqlite資料庫時,插入資料,但查詢

Android 使用Sqlite資料庫時,插入了資料,不報錯,但查詢不到 (初學者)今天寫安卓的時候遇見這麼一個問題,我覺得挺有趣的,就是cursor查詢時,用cursor.getString(1),這種居然不能精確定位到行位置(可能是從0開始?有時間再細糾一下),得用cur

SpringBoot+jpa配置自動建立表建立表

原因 找了網上很多答案,均不對,包括以下幾種: 包導的不對 配置檔案不對 註解寫的不對 … 最後發現原因: Sprint的入口檔案在子目錄裡了,應該比其他諸如server、dao、domain高一級。 例如:service檔案所在為com.wds.met

mysql 從一個表資料插入另一個表。。

其實很簡單,只是為了忘記,做個記錄,用的時候方便。 INSERT INTO TPersonnelChange( UserId, DepId, SubDepId, PostionType, AuthorityId, ChangeDateS, InsertDate

spring jpa使用entitymanager無法儲存物件

在spring 的事務配置如下: <tx:annotation-driven transaction-manager="transactionManager"/>     <bean id="transactionManager" class="org.s

在JSP引入了標籤庫,但是標籤庫存在,依舊Can not find the tag library descriptor for ......

在JSP中引入不了標籤庫,但是標籤庫存在,卻依舊報錯Can not find the tag library descriptor for …… 在這種情況下只需引入 standard.jar 或

lucene2.9.0索引寫入無法寫入的奇怪問題

多次除錯後,發現是writer初始化的問題 Directory fsDir = FSDirectory.open(new File(indexPath)); //Directory ramDir = new RAMDirectory(fsDir);writer = new