Source Taste: Hibernate/JPA: PersistenceContextType & PersistenceUnitTransactionType
来源:互联网 发布:李沁 田小娥 知乎 编辑:程序博客网 时间:2024/05/21 00:49
package javax.persistence;/** * Specifies whether a transaction-scoped or extended * persistence context is to be used in {@link PersistenceContext}. * If not specified, a transaction-scoped persistence context is used. * * @since Java Persistence 1.0 */public enum PersistenceContextType {/** * Transaction-scoped persistence context */TRANSACTION,/** * Extended persistence context */EXTENDED}
THINK: When to use 'EXTENDED'?
package javax.persistence.spi;/** * Specifies whether entity managers created by the {@link * javax.persistence.EntityManagerFactory} will be JTA or * resource-local entity managers. * * @since Java Persistence 1.0 */public enum PersistenceUnitTransactionType {/** * JTA entity managers will be created. */JTA,/** * Resource-local entity managers will be created. */RESOURCE_LOCAL}
- Source Taste: Hibernate/JPA: PersistenceContextType & PersistenceUnitTransactionType
- Source Taste: Hibernate/JPA: AbstractEntityManagerImpl
- Source Taste: Hibernate/JPA: StatefulPersistenceContext
- Source Taste: Hibernate/JPA: AbstractSessionImpl & SessionImpl
- Source Taste: JPA: InheritanceType
- Source Taste: Spring DefaultListableBeanFactory
- Source Taste: Java ThreadLocal
- Source Taste: Activiti: StartProcessInstanceClickListener
- Source Taste: Struts 2 ActionContext
- Source Taste: Struts 2: ValueStack
- Source Taste: Struts 2:ModelDrivenInterceptor
- Source Taste:Command Pattern in Activiti
- Source Taste: Spring Data: Redis: JdkSerializationRedisSerializer
- Hibernate+JPA
- Hibernate+JPA
- Hibernate JPA
- hibernate jpa
- hibernate jpa
- 策略模式
- 算法研究之开灯问题
- 各种强大的listview(加button,加任何控件)
- 世界末日虽没来,信仰却会更坚定
- windows 7下安装Win CE 6.0开发环境
- Source Taste: Hibernate/JPA: PersistenceContextType & PersistenceUnitTransactionType
- ssh/SecureCRT 显示vim颜色模式
- tomcat配置https单向认证
- android很好的一篇文章,关于AndroidManifest.xml文件各个属性,补补基础
- C++中的异常处理机制
- 入驻CSDN
- 一、初识GDB(Linux下调试工具GDB教程)
- android - Gesture学习 1
- iPad、iPhone 界面设计标准