????
????????
????????
????????
????????
????
其中hibernate.dialect是hibernate的方言
????hibernate.show_sql ?在增删改查操作时 是否打印sql语句
????hibernate.format_sql是否对sql语句进行格式化,说白了就是美化sql
? ? hibernate.hbm2ddl.auto 当为update时根据java对象生成数据库里的表
可以的 <property?name="hibernateproperties"> ????<props> ????????<prop?key="hibernate.dialect">org.hibernate.dialect.oracledialect</prop> ????????<prop?key="hibernate.show_sql">true</prop> ????????<prop?key="hibernate.format_sql">true</prop> ????????<prop?key="hibernate.hbm2ddl.auto">update</prop> ????</props> </property>其中hibernate.dialect是hibernate的方言 ????hibernate.show_sql ?在增删改查操作时 是否打印sql语句 ????hibernate.format_sql是否对sql语句进行格式化,说白了就是美化sql ? ? hibernate.hbm2ddl.auto 当为update时根据java对象生成数据库里的表