Skip to content

Commit b2dcbb9

Browse files
committed
HBX-2979: Review the licensing headers and files
- Handle the 'mysql' subproject Signed-off-by: Koen Aers <[email protected]>
1 parent ecc758f commit b2dcbb9

File tree

16 files changed

+238
-26
lines changed

16 files changed

+238
-26
lines changed

test/mysql/pom.xml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
~ Hibernate Tools, Tooling for your Hibernate Projects
3+
~ Copyright 2004 - 2025 Red Hat, Inc.
44
~
5-
~ Copyright 2018-2021 Red Hat, Inc.
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
68
~
7-
~ Licensed under the GNU Lesser General Public License (LGPL),
8-
~ version 2.1 or later (the "License").
9-
~ You may not use this file except in compliance with the License.
10-
~ You may read the licence in the 'lgpl.txt' file in the root folder of
11-
~ project or obtain a copy at
12-
~
13-
~ http://www.gnu.org/licenses/lgpl-2.1.html
9+
~ http://www.apache.org/licenses/LICENSE-2.0
1410
~
1511
~ Unless required by applicable law or agreed to in writing, software
1612
~ distributed under the License is distributed on an "AS IS" basis,

test/mysql/readme.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
############################################################################
2+
# Hibernate Tools, Tooling for your Hibernate Projects #
3+
# #
4+
# Copyright 2004-2025 Red Hat, Inc. #
5+
# #
6+
# Licensed under the Apache License, Version 2.0 (the "License"); #
7+
# you may not use this file except in compliance with the License. #
8+
# You may obtain a copy of the License at #
9+
# #
10+
# http://www.apache.org/licenses/LICENSE-2.0 #
11+
# #
12+
# Unless required by applicable law or agreed to in writing, software #
13+
# distributed under the License is distributed on an "AS IS" basis, #
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
15+
# See the License for the specific language governing permissions and #
16+
# limitations under the License. #
17+
############################################################################
18+
119
The tests in this project will run when the 'all' profile is used and when the database is online.
220

321
The project was developed against the MySQL database running on localhost in a Docker container.

test/mysql/src/test/java/org/hibernate/tool/hbm2x/DefaultDatabaseCollector/TestCase.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
/*
22
* Hibernate Tools, Tooling for your Hibernate Projects
3-
*
4-
* Copyright 2004-2021 Red Hat, Inc.
53
*
6-
* Licensed under the GNU Lesser General Public License (LGPL),
7-
* version 2.1 or later (the "License").
8-
* You may not use this file except in compliance with the License.
9-
* You may read the licence in the 'lgpl.txt' file in the root folder of
10-
* project or obtain a copy at
4+
* Copyright 2004-2025 Red Hat, Inc.
115
*
12-
* http://www.gnu.org/licenses/lgpl-2.1.html
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
1311
*
1412
* Unless required by applicable law or agreed to in writing, software
1513
* distributed under the License is distributed on an "AS IS" basis,

test/mysql/src/test/java/org/hibernate/tool/hbm2x/DefaultSchemaCatalog/TestCase.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
/*
22
* Hibernate Tools, Tooling for your Hibernate Projects
3-
*
4-
* Copyright 2004-2021 Red Hat, Inc.
53
*
6-
* Licensed under the GNU Lesser General Public License (LGPL),
7-
* version 2.1 or later (the "License").
8-
* You may not use this file except in compliance with the License.
9-
* You may read the licence in the 'lgpl.txt' file in the root folder of
10-
* project or obtain a copy at
4+
* Copyright 2004-2025 Red Hat, Inc.
115
*
12-
* http://www.gnu.org/licenses/lgpl-2.1.html
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
1311
*
1412
* Unless required by applicable law or agreed to in writing, software
1513
* distributed under the License is distributed on an "AS IS" basis,

test/mysql/src/test/java/org/hibernate/tool/test/db/mysql/TestSuite.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Hibernate Tools, Tooling for your Hibernate Projects
3+
*
4+
* Copyright 2004-2025 Red Hat, Inc.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" basis,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
package org.hibernate.tool.test.db.mysql;
219

320
import org.hibernate.tool.test.db.DbTestSuite;

test/mysql/src/test/resources/hibernate.properties

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
############################################################################
2+
# Hibernate Tools, Tooling for your Hibernate Projects #
3+
# #
4+
# Copyright 2004-2025 Red Hat, Inc. #
5+
# #
6+
# Licensed under the Apache License, Version 2.0 (the "License"); #
7+
# you may not use this file except in compliance with the License. #
8+
# You may obtain a copy of the License at #
9+
# #
10+
# http://www.apache.org/licenses/LICENSE-2.0 #
11+
# #
12+
# Unless required by applicable law or agreed to in writing, software #
13+
# distributed under the License is distributed on an "AS IS" basis, #
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
15+
# See the License for the specific language governing permissions and #
16+
# limitations under the License. #
17+
############################################################################
118
hibernate.dialect org.hibernate.dialect.MySQLDialect
219
hibernate.connection.driver_class com.mysql.cj.jdbc.Driver
320
hibernate.connection.username root
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
############################################################################
2+
# Hibernate Tools, Tooling for your Hibernate Projects #
3+
# #
4+
# Copyright 2004-2025 Red Hat, Inc. #
5+
# #
6+
# Licensed under the Apache License, Version 2.0 (the "License"); #
7+
# you may not use this file except in compliance with the License. #
8+
# You may obtain a copy of the License at #
9+
# #
10+
# http://www.apache.org/licenses/LICENSE-2.0 #
11+
# #
12+
# Unless required by applicable law or agreed to in writing, software #
13+
# distributed under the License is distributed on an "AS IS" basis, #
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
15+
# See the License for the specific language governing permissions and #
16+
# limitations under the License. #
17+
############################################################################
118
CREATE SCHEMA `cat.cat`
219
CREATE TABLE `cat.cat`.`cat.master` (ID INT NOT NULL, TT INT, CONSTRAINT MASTER_PK PRIMARY KEY (ID))
320
CREATE TABLE `cat.cat`.`cat.child` (CHILDID INT NOT NULL, MASTERREF INT, CONSTRAINT CHILD_PK PRIMARY KEY (CHILDID), CONSTRAINT MASTERREF_FK FOREIGN KEY (MASTERREF) references `cat.cat`.`cat.master`(ID))
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
############################################################################
2+
# Hibernate Tools, Tooling for your Hibernate Projects #
3+
# #
4+
# Copyright 2004-2025 Red Hat, Inc. #
5+
# #
6+
# Licensed under the Apache License, Version 2.0 (the "License"); #
7+
# you may not use this file except in compliance with the License. #
8+
# You may obtain a copy of the License at #
9+
# #
10+
# http://www.apache.org/licenses/LICENSE-2.0 #
11+
# #
12+
# Unless required by applicable law or agreed to in writing, software #
13+
# distributed under the License is distributed on an "AS IS" basis, #
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
15+
# See the License for the specific language governing permissions and #
16+
# limitations under the License. #
17+
############################################################################
118
DROP TABLE `cat.cat`.`cat.child`
219
DROP TABLE `cat.cat`.`cat.master`
320
DROP SCHEMA `cat.cat`

test/mysql/src/test/resources/org/hibernate/tool/hbmlint/SchemaAnalyzer/SchemaIssues.hbm.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
<?xml version="1.0"?>
2-
<!DOCTYPE hibernate-mapping PUBLIC
2+
<!--
3+
~ Copyright 2004 - 2025 Red Hat, Inc.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" basis,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
<!DOCTYPE hibernate-mapping PUBLIC
318
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
419
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
520

test/mysql/src/test/resources/org/hibernate/tool/hbmlint/SchemaAnalyzer/create.sql

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
############################################################################
2+
# Hibernate Tools, Tooling for your Hibernate Projects #
3+
# #
4+
# Copyright 2004-2025 Red Hat, Inc. #
5+
# #
6+
# Licensed under the Apache License, Version 2.0 (the "License"); #
7+
# you may not use this file except in compliance with the License. #
8+
# You may obtain a copy of the License at #
9+
# #
10+
# http://www.apache.org/licenses/LICENSE-2.0 #
11+
# #
12+
# Unless required by applicable law or agreed to in writing, software #
13+
# distributed under the License is distributed on an "AS IS" basis, #
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
15+
# See the License for the specific language governing permissions and #
16+
# limitations under the License. #
17+
############################################################################
118
CREATE TABLE CATEGORY (ID INT, PARENT_ID NUMERIC(5))
219
CREATE TABLE BAD_TYPE (ID INT, NAME VARCHAR(100))
320
CREATE TABLE SHOULD_BE_THERE (ID INT)

0 commit comments

Comments
 (0)