diff --git a/test/h2/pom.xml b/test/h2/pom.xml index 3cdbc9f8d7..2485fb2f36 100644 --- a/test/h2/pom.xml +++ b/test/h2/pom.xml @@ -1,16 +1,12 @@ diff --git a/test/h2/src/test/resources/org/hibernate/tool/hbx1093/create.sql b/test/h2/src/test/resources/org/hibernate/tool/hbx1093/create.sql index cdf1ffd9ff..b529ae94d8 100644 --- a/test/h2/src/test/resources/org/hibernate/tool/hbx1093/create.sql +++ b/test/h2/src/test/resources/org/hibernate/tool/hbx1093/create.sql @@ -1,3 +1,20 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2004-2025 Red Hat, Inc. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" basis, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +############################################################################ CREATE TABLE ET_MANY_TO_MANY_COMP1 (ET_MANY_TO_MANY_COMP1_ID NUMBER, ET_MANY_TO_MANY_COMP11_ID NUMBER, FIELD VARCHAR2(10), PRIMARY KEY (ET_MANY_TO_MANY_COMP1_ID, ET_MANY_TO_MANY_COMP11_ID)) CREATE TABLE ET_MANY_TO_MANY_COMP2 ( ET_MANY_TO_MANY_COMP2_ID NUMBER, ET_MANY_TO_MANY_COMP22_ID NUMBER, FIELD VARCHAR2(10), PRIMARY KEY (ET_MANY_TO_MANY_COMP2_ID, ET_MANY_TO_MANY_COMP22_ID)) CREATE TABLE ET_MANY_TO_MANY_COMP_MAPPING ( FK_ET_MANY_TO_MANY_COMP1_ID NUMBER, FK_ET_MANY_TO_MANY_COMP11_ID NUMBER, FK_ET_MANY_TO_MANY_COMP2_ID NUMBER, FK_ET_MANY_TO_MANY_COMP22_ID NUMBER, FOREIGN KEY (FK_ET_MANY_TO_MANY_COMP1_ID,FK_ET_MANY_TO_MANY_COMP11_ID) REFERENCES ET_MANY_TO_MANY_COMP1(ET_MANY_TO_MANY_COMP1_ID,ET_MANY_TO_MANY_COMP11_ID), FOREIGN KEY (FK_ET_MANY_TO_MANY_COMP2_ID, FK_ET_MANY_TO_MANY_COMP22_ID) REFERENCES ET_MANY_TO_MANY_COMP2(ET_MANY_TO_MANY_COMP2_ID, ET_MANY_TO_MANY_COMP22_ID), PRIMARY KEY (FK_ET_MANY_TO_MANY_COMP1_ID,FK_ET_MANY_TO_MANY_COMP11_ID,FK_ET_MANY_TO_MANY_COMP2_ID,FK_ET_MANY_TO_MANY_COMP22_ID) ) diff --git a/test/h2/src/test/resources/org/hibernate/tool/hbx1093/drop.sql b/test/h2/src/test/resources/org/hibernate/tool/hbx1093/drop.sql index ffc413a279..be4c816be0 100644 --- a/test/h2/src/test/resources/org/hibernate/tool/hbx1093/drop.sql +++ b/test/h2/src/test/resources/org/hibernate/tool/hbx1093/drop.sql @@ -1,3 +1,20 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2004-2025 Red Hat, Inc. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" basis, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +############################################################################ DROP TABLE ET_MANY_TO_MANY_COMP_MAPPING DROP TABLE ET_MANY_TO_MANY_COMP2 DROP TABLE ET_MANY_TO_MANY_COMP1 \ No newline at end of file diff --git a/test/h2/src/test/resources/org/hibernate/tool/internal/reveng/dialect/create.sql b/test/h2/src/test/resources/org/hibernate/tool/internal/reveng/dialect/create.sql index ee2860f972..05a047522c 100644 --- a/test/h2/src/test/resources/org/hibernate/tool/internal/reveng/dialect/create.sql +++ b/test/h2/src/test/resources/org/hibernate/tool/internal/reveng/dialect/create.sql @@ -1 +1,18 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2004-2025 Red Hat, Inc. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" basis, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +############################################################################ CREATE TABLE `autoinc` (`id` IDENTITY NOT NULL, `data` varchar(100) default NULL, PRIMARY KEY (`id`)) diff --git a/test/h2/src/test/resources/org/hibernate/tool/internal/reveng/dialect/drop.sql b/test/h2/src/test/resources/org/hibernate/tool/internal/reveng/dialect/drop.sql index be168e97d0..b04a6d668c 100644 --- a/test/h2/src/test/resources/org/hibernate/tool/internal/reveng/dialect/drop.sql +++ b/test/h2/src/test/resources/org/hibernate/tool/internal/reveng/dialect/drop.sql @@ -1 +1,18 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2004-2025 Red Hat, Inc. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" basis, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +############################################################################ DROP TABLE `autoinc` diff --git a/test/h2/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/create.sql b/test/h2/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/create.sql index 99a63b36da..3721d8f275 100644 --- a/test/h2/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/create.sql +++ b/test/h2/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/create.sql @@ -1,2 +1,19 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2004-2025 Red Hat, Inc. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" basis, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +############################################################################ CREATE TABLE `autoinc` (`id` IDENTITY NOT NULL, `data` varchar(100) default NULL, PRIMARY KEY (`id`)) CREATE TABLE `noautoinc` (`id` int NOT NULL, `data` varchar(100) default NULL, PRIMARY KEY (`id`)) diff --git a/test/h2/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/drop.sql b/test/h2/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/drop.sql index aa7fff06ef..60d6e422d7 100644 --- a/test/h2/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/drop.sql +++ b/test/h2/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/drop.sql @@ -1,2 +1,19 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2004-2025 Red Hat, Inc. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" basis, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +############################################################################ DROP TABLE `autoinc` DROP TABLE `noautoinc`