Fork me on GitHub

随笔分类 -  hibernate

摘要:```java @EnableTransactionManagement // 开启注解事务管理,等同于xml配置文件中的 public class ProfiledemoApplication implements TransactionManagementConfigurer { @Resource(name="jpaTransactionManager") privat... 阅读全文
posted @ 2017-04-09 23:08 aloha_world 阅读(143) 评论(0) 推荐(0)
摘要:```java package rugal.sample.core.entity; import java.util.Date; import java.util.UUID; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; im... 阅读全文
posted @ 2017-01-14 23:26 aloha_world 阅读(142) 评论(0) 推荐(0)
摘要:建一张主键表 指定全局主键 JPA TableGenerator 阅读全文
posted @ 2017-01-06 00:20 aloha_world 阅读(250) 评论(0) 推荐(0)
摘要:BaseDao接口定义 BaseDao实现 Service工具类 阅读全文
posted @ 2017-01-05 23:33 aloha_world 阅读(132) 评论(0) 推荐(0)