Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- i18n
- 지수반등
- 리얼월드HTTP
- 알고리즘
- kotliln
- 브로틀리
- 이렇게살아야되나자괴감이
- Spring
- 클래스레벨밸리데이션
- 지뢰찾기
- 랜선아미안해
- 워드프레스
- LastModified
- jsr303
- HTTP
- cache-control
- 개미수열
- Kotlin
- 코드스피츠
- jsr380
- brotli
- 알게뭐냐
- etag
- 스프링
- cross parameter
Archives
- Today
- Total
취미개발 블로그와 마음수양
hibernate.cfg.xml 본문
<?
xml
version
=
'1.0'
encoding
=
'utf-8'
?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
<
hibernate-configuration
>
<
session-factory
>
<!-- Database connection settings -->
<
property
name
=
"connection.driver_class"
>org.apache.derby.jdbc.ClientDriver</
property
>
<
property
name
=
"connection.username"
>user</
property
>
<
property
name
=
"connection.password"
>password</
property
>
<
property
name
=
"dialect"
>org.hibernate.dialect.DerbyDialect</
property
>
<!-- JDBC connection pool (use the built-in) -->
<
property
name
=
"connection.pool_size"
>1</
property
>
<!-- Enable Hibernate's current session context -->
<
property
name
=
"current_session_context_class"
>thread</
property
>
<!-- Disable the second-level cache -->
<
property
name
=
"cache.provider_class"
>org.hibernate.cache.NoCacheProvider</
property
>
<!-- Echo all executed SQL to stdout -->
<
property
name
=
"show_sql"
>true</
property
>
<
property
name
=
"hbm2ddl.auto"
>create</
property
>
<
mapping
class
=
"chap01.crud.Member"
/>
</
session-factory
>
</
hibernate-configuration
>
----------------------------------
H2Db
<property name="connection.driver_class">org.h2.Driver</property>
<property name="connection.url">jdbc:h2:tcp://localhost/~/test;MVCC=true</property>
<!--
<property name="connection.url">jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE</property>
-->
<property name="connection.username">sa</property>
<property name="connection.password"/>
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.H2Dialect</property>
mysql
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/데이터베이스이름</property>
<property name="hibernate.connection.username">id</property>
<property name="hibernate.connection.password">password</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
HSQL
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="connection.url">jdbc:hsqldb:mem:.</property>
<!-- <property name="connection.url">jdbc:hsqldb:hsql://localhost</property> -->
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>
'FrameWork_ETC > JPA_Hibernate' 카테고리의 다른 글
QueryDSL - group_concat 과 subQuery등 잡다쿼리(?)를 할 때는 QueryDSL sql 을 검토해보자 (1) | 2019.01.08 |
---|---|
intellij QueryDSL 설정 (1) | 2017.09.21 |