Skip to content

Commit 4f4d002

Browse files
committed
HBX-2979: Review the licensing headers and files
- Handle the 'test/h2' subproject Signed-off-by: Koen Aers <[email protected]>
1 parent b8b0467 commit 4f4d002

File tree

17 files changed

+236
-45
lines changed

17 files changed

+236
-45
lines changed

test/h2/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/h2/src/test/java/org/hibernate/tool/entitynaming/EntityNamingTest.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
/*
22
* Hibernate Tools, Tooling for your Hibernate Projects
33
*
4-
* Copyright 2004-2021 Red Hat, Inc.
4+
* Copyright 2004-2025 Red Hat, Inc.
55
*
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
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
119
*
12-
* http://www.gnu.org/licenses/lgpl-2.1.html
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/h2/src/test/java/org/hibernate/tool/entitynaming/RevengStrategyEntityNaming.java

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
/*
2-
* Copyright (C) 2023 Hibernate.
2+
* Hibernate Tools, Tooling for your Hibernate Projects
33
*
4-
* This library is free software; you can redistribute it and/or
5-
* modify it under the terms of the GNU Lesser General Public
6-
* License as published by the Free Software Foundation; either
7-
* version 2.1 of the License, or (at your option) any later version.
4+
* Copyright 2004-2025 Red Hat, Inc.
85
*
9-
* This library is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12-
* Lesser General Public License for more details.
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
139
*
14-
* You should have received a copy of the GNU Lesser General Public
15-
* License along with this library; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17-
* MA 02110-1301 USA
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.
1817
*/
1918
package org.hibernate.tool.entitynaming;
2019

test/h2/src/test/java/org/hibernate/tool/hbx1093/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/h2/src/test/java/org/hibernate/tool/internal/reveng/dialect/H2MetaDataDialectTest.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.internal.reveng.dialect;
219

320
import java.sql.Connection;

test/h2/src/test/java/org/hibernate/tool/test/db/h2/TestSuite.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/h2/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.H2Dialect
219
hibernate.connection.driver_class org.h2.Driver
320
hibernate.connection.username sa

test/h2/src/test/resources/org/hibernate/tool/entitynaming/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 "orders" ( "ordId" INT generated by default as identity (start with 1) NOT NULL, "ordDesc" VARCHAR(10), "ordVersion" TINYINT DEFAULT 0 NOT NULL, PRIMARY KEY ("ordId"))
219
CREATE TABLE "orderItems" ( "oiId" INT generated by default as identity (start with 1) NOT NULL, "oiOrdId" INT NOT NULL, "oiDesc" VARCHAR(10), "oiVersion" TINYINT DEFAULT 0 NOT NULL, PRIMARY KEY ("oiId"))
320
ALTER TABLE "orderItems" ADD CONSTRAINT "orderorderitemfk" FOREIGN KEY ("oiOrdId") REFERENCES "orders" ("ordId") ON DELETE CASCADE ON UPDATE CASCADE
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 "orderItems"
219
DROP TABLE "orders"
320
DROP TABLE "dummy"

test/h2/src/test/resources/org/hibernate/tool/entitynaming/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.H2Dialect
219
hibernate.connection.driver_class org.h2.Driver
320
hibernate.connection.username sa

0 commit comments

Comments
 (0)