Skip to content

Commit 2b29479

Browse files
Fix iluwatar#1929: Suppress logging hibernate internals (iluwatar#2158)
* chore: suppress logging of hibernate internals * chore: use non-obsolete hibernate namespace
1 parent 9dc91d8 commit 2b29479

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

metadata-mapping/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ We use `Hibernate` to resolve the mapping and connect to our database, here's it
104104
<?xml version="1.0" encoding="utf-8"?>
105105
<!DOCTYPE hibernate-configuration PUBLIC
106106
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
107-
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
107+
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
108108
<hibernate-configuration>
109109
<session-factory>
110110
<!-- JDBC Database connection settings -->

metadata-mapping/src/main/resources/hibernate.cfg.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!DOCTYPE hibernate-configuration PUBLIC
33
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
4-
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
4+
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
55
<hibernate-configuration>
66
<session-factory>
77
<!-- JDBC Database connection settings -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The MIT License
5+
Copyright © 2014-2022 Ilkka Seppälä
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
THE SOFTWARE.
24+
25+
-->
26+
<configuration>
27+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
28+
<encoder>
29+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
30+
</encoder>
31+
</appender>
32+
<root level="info">
33+
<appender-ref ref="STDOUT" />
34+
</root>
35+
</configuration>

0 commit comments

Comments
 (0)