<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.2"
             xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd">
    <persistence-unit name="hello">
<!--        <class>com.hello.jpa.context.Member</class>-->
<!--        <class>com.hello.jpa.entitymapping.ex00.Member</class>-->
<!--        <class>com.hello.jpa.entitymapping.ex01.domain.Item</class>-->
<!--        <class>com.hello.jpa.entitymapping.ex01.domain.Member</class>-->
<!--        <class>com.hello.jpa.entitymapping.ex01.domain.Order</class>-->
<!--        <class>com.hello.jpa.entitymapping.ex01.domain.OrderItem</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex00.Member</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex00.Team</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex01.domain.Item</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex01.domain.Member</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex01.domain.Order</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex01.domain.OrderItem</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex02.domain.Member</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex02.domain.Team</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex02.domain.Locker</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex03.domain.Category</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex03.domain.Delivery</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex03.domain.Item</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex03.domain.Member</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex03.domain.Order</class>-->
<!--        <class>com.hello.jpa.relationmapping.ex03.domain.OrderItem</class>-->
<!--        <class>com.hello.jpa.inheritance.ex00.Item</class>-->
<!--        <class>com.hello.jpa.inheritance.ex00.Album</class>-->
<!--        <class>com.hello.jpa.inheritance.ex00.Book</class>-->
<!--        <class>com.hello.jpa.inheritance.ex00.Movie</class>-->
<!--        <class>com.hello.jpa.inheritance.ex01.Member</class>-->
<!--        <class>com.hello.jpa.inheritance.ex01.Team</class>-->
<!--        <class>com.hello.jpa.proxy.ex00.Member</class>-->
<!--        <class>com.hello.jpa.proxy.ex00.Team</class>-->
<!--        <class>com.hello.jpa.proxy.ex01.Parent</class>-->
<!--        <class>com.hello.jpa.proxy.ex01.Child</class>-->
<!--        <class>com.hello.jpa.valuetype.ex00.Member</class>-->
<!--        <class>com.hello.jpa.valuetype.ex01.Member</class>-->
<!--        <class>com.hello.jpa.valuetype.ex02.Member</class>-->
        <class>com.hello.jpa.query.entity.Member</class>
        <class>com.hello.jpa.query.entity.Order</class>
        <class>com.hello.jpa.query.entity.Product</class>
        <class>com.hello.jpa.query.entity.Team</class>

        <properties>
            <!-- 필수 속성 -->
            <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
            <property name="javax.persistence.jdbc.user" value="sa"/>
            <property name="javax.persistence.jdbc.password" value=""/>
            <property name="javax.persistence.jdbc.url" value="jdbc:h2:tcp://localhost/~/test"/>
<!--            <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:~/testdb"/>-->
            <property name="hibernate.dialect" value="com.hello.jpa.query.dialect.MyH2Dialect"/>

            <!-- 옵션 -->
            <property name="hibernate.show_sql" value="true"/>
            <property name="hibernate.format_sql" value="true"/>
            <property name="hibernate.use_sql_comments" value="true"/>
            <property name="hibernate.hbm2ddl.auto" value="create" />
            <property name="hibernate.default_batch_fetch_size" value="100" />
        </properties>
    </persistence-unit>
</persistence>