-
hbm配置文件常用設置查看全部
-
openSession與getCurrentSession的區別查看全部
-
如何獲得session對象??? (1)openSessionion (2)getCurrentSession 如果使用getCurrentSession需要在hibernate.cfg.xml文件中進行配置: 如果是本地事務(jdbc事務) <property name="hibernate.current_session_context_class">thread</property> 如果是全局事務(jta事務) <property name="hibernate.current_session_context_class">jta</property>查看全部
-
transaction事物簡介查看全部
-
hibernate執行流程查看全部
-
導入的包查看全部
-
hibernate.cfg.xml常用配置查看全部
-
主鍵生成策略查看全部
-
hibernate API 編寫訪問數據庫的步驟查看全部
-
JUnit單元測試的常用注解 1)@Test:測試方法; 2)@Before:初始化方法; 3)@After:釋放資源 ;查看全部
-
openSession與getCurrentSession的區別查看全部
-
例子例子例子查看全部
-
創建Hibernate的配置文件 hibernate.cfg.xml 創建持久化類 創建對象-關系映射文件 通過Hibernate API編寫訪問數據庫的代碼查看全部
-
transaction簡介查看全部
-
hibernate的執行流程查看全部
舉報
0/150
提交
取消