liuyangming / ByteTCC

ByteTCC is a distributed transaction manager based on the TCC(Try/Confirm/Cancel) mechanism. It’s compatible with the JTA specification. User guide: https://github.com/liuyangming/ByteTCC/wiki
https://www.bytesoft.org/
GNU Lesser General Public License v3.0
2.9k stars 911 forks source link

spring boot data jpa 能支持不? #41

Open apm70plus opened 6 years ago

apm70plus commented 6 years ago

请问是否支持spring boot data jpa,我按jpa方式配置,服务启动没问题,但是运行到jpa的Repository更新操作的时候,数据库没有任何变化,结果就是Jpa Repository事务提交失败,该如何搞呢?

liuyangming commented 6 years ago

ByteTCC-sample工程的dubbo-sample-provider里有JPA/Hibernate的配置样例,可以参考一下。

apm70plus commented 6 years ago

那就太好了,🙏

JianQiu2018 commented 4 years ago

ByteTCC-sample工程的dubbo-sample-provider里有JPA/Hibernate的配置样例,可以参考一下。

你好,没找到JPA相关配置呢,麻烦告知一下,谢谢,不然jpa的save方法一调用就报错

liuyangming commented 4 years ago

前面说错了,抱歉,误导大家了。是在springboot-sample-provider中,具体配置看一下这几个类: 1、SpringBootProviderBootstrap: 留意一下@EnableJpaRepositories注解的配置; 2、ProviderConfig: 留意LocalContainerEntityManagerFactoryBean的配置; 3、META-INF/persistence.xml;