A hitbernate configuration file with several tables (note mapping)

Source: Internet
Author: User

<?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>         <!--Database-driven -        < Propertyname= "Connection.driver_class">Com.mysql.jdbc.Driver</ Property>        <!--URL of the database connection -        < Propertyname= "Connection.url">Jdbc:mysql://localhost:3306/db_database10?characterencoding=utf8</ Property>        <!--database connection user name -        < Propertyname= "Connection.username">Root</ Property>        <!--Database connection Password -        < Propertyname= "Connection.password">111</ Property>        <!--Hibernate dialect -        < Propertyname= "dialect">Org.hibernate.dialect.MySQLDialect</ Property>        <!--Print SQL statements -        < Propertyname= "Show_sql">True</ Property>        <!--  mapping files  --<mapping  resource= "com/mr/ Employee/employee.hbm.xml "/><mapping  resource=" Com/mr /product/product.hbm.xml "/></session-factory>                       </hibernate-configuration>

Jdbc:mysql://localhost:3306/db_database10?characterencoding=utf8

A hitbernate configuration file with several tables (note mapping)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.