zoukankan      html  css  js  c++  java
  • hibernate配置文件(简单版)

    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE hibernate-configuration PUBLIC
            "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
            "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    
    <hibernate-configuration>
    
        <session-factory>
    
            <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
            <property name="connection.url">jdbc:oracle:thin:@localhost:1521:orcl</property>

    或者

         <property name="connection.url">jdbc:mysql://localhost:3306/数据库名</property>
            <property name="connection.username">sa</property>
            <property name="connection.password">123</property>
            <property name="dialect">org.hibernate.dialect.HSQLDialect</property>
            <property name="show_sql">true</property>
    <property name="current_session_context_class">thread</property>
            <mapping resource="org/hibernate/tutorial/domain/Event.hbm.xml"/> 

        </session-factory> </hibernate-configuration >
    破罐子互摔
  • 相关阅读:
    Solidity 官方文档中文版 3_安装Solidity
    javaweb监听器
    ssh基础配置大全
    servlet
    压缩介绍
    jsp小结
    servlet生命周期
    后台权限验证
    进程&线程
    StrutsPreparedAndExcuteFilter与Interceptor
  • 原文地址:https://www.cnblogs.com/zonglonglong/p/2654933.html
Copyright © 2011-2022 走看看