随笔分类 - |--- Hibernate
摘要:1 2 5 6 7 8 17 18 com.mysql.jdbc.Driver 19 20 jdbc:mysql:///hibernate_32 21 22 root 23 24 1234 25 ...
阅读全文
摘要:其中一个Customer对应多个LinkMan Customer的映射文件 Customer.hbm.xml >一对多 LinkMan的映射文件 LinkMan.hbm.xml >多对一
阅读全文
摘要:1.<!-- 指定hibernate操作数据库时的隔离级别 #hibernate.connection.isolation 1|2|4|8 0001 1 读未提交 0010 2 读已提交 0100 4 可重复读 1000 8 串行化 --> <property name="hibernate.con
阅读全文
摘要:配置一条属性 <property name="hibernate.current_session_context_class">thread</property> dao层 (以下代码仅是演示) service层
阅读全文