Hibernate.cfg.xml by little Guo Boots, shame Ah! Shame!! Shame Ah!!!

Source: Internet
Author: User

<?XML version= "1.0" encoding= "Utf-8"?><!DOCTYPE hibernate-configuration Public "-//hibernate/hibernate configuration DTD 3.0//en" "Http://www.hi Bernate.org/dtd/hibernate-configuration-3.0.dtd "><hibernate-configuration>    <session-factory>        < Propertyname= "Connection.driver_class">Oracle.jdbc.OracleDriver</ Property>        < Propertyname= "Connection.url">Jbdc:oracle:thin: @localhost: 1521:orcl</ Property>        < Propertyname= "Connection.username">Scott</ Property>        < Propertyname= "Connection.password">123</ Property>        < Propertyname= "dialect">Org.hibernate.dialect.Oracle10gDialect</ Property>        < Propertyname= "Show_sql">true</ Property>        < Propertyname= "Format_sql">true</ Property>        < Propertyname= "Hbm2ddl.auto">Update</ Property>        <!--and current thread bindings -        < Propertyname= "Current_session_context_class">Thread</ Property>       <!--enable level two cache <property name= "Cache.use_second_level_cache" >true</property> &lt;! &ndash;        Configure the factory using the level two cache &ndash;&gt;        <property name= "Hibernate.cache.region.factory_class" >org.hibernate.cache.ehcache.ehcacheregionfactory </property> &lt;! &ndash;        Configure Enable query caching &ndash;&gt; <property name= "Cache.use_query_cache" >true</property> -//Haha class<Mappingclass= "entity. Membersinfo "/>    </session-factory></hibernate-configuration>

Error 1.


<?xml version= "1.0" encoding= "Utf-8"? ><! DOCTYPE hibernate-configuration public "-//hibernate/hibernate configuration DTD 3.0//en" "http// Www.hibernate.org/dtd/hibernate-configuration-3.0.dtd ">

The first line is not written in the first line, the second line, the comment is not

Error 2.

        <property name= "Connection.url" >            jbdc:oracle:thin: @localhost: 1521:ORCL        </property>

Jbdc>jdbc localhost>192.168.15.10

Error 3.

        Haha class        <mapping class= "entity. Membersinfo "/>

XML file, you actually use//comment, and no one

Hibernate.cfg.xml by little Guo Boots, shame Ah! Shame!! Shame Ah!!!

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.