Created
August 11, 2021 15:50
-
-
Save yooniversal/34fee7604526b13e02ebf2e41973b5a6 to your computer and use it in GitHub Desktop.
JPA 2장 : persistence.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" version="2.1"> | |
<persistence-unit name="jpabook"> | |
<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="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" /> | |
<!-- 옵션 --> | |
<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.id.new_generator_mappings" value="true" /> | |
<!--<property name="hibernate.hbm2ddl.auto" value="create" />--> | |
</properties> | |
</persistence-unit> | |
</persistence> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment