diff --git a/test/mysql/pom.xml b/test/mysql/pom.xml index a81088e7f5..e3bb27d311 100644 --- a/test/mysql/pom.xml +++ b/test/mysql/pom.xml @@ -1,16 +1,12 @@ + diff --git a/test/mysql/src/test/resources/org/hibernate/tool/hbmlint/SchemaAnalyzer/create.sql b/test/mysql/src/test/resources/org/hibernate/tool/hbmlint/SchemaAnalyzer/create.sql index acc3ea4e8e..54df6b0cea 100644 --- a/test/mysql/src/test/resources/org/hibernate/tool/hbmlint/SchemaAnalyzer/create.sql +++ b/test/mysql/src/test/resources/org/hibernate/tool/hbmlint/SchemaAnalyzer/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 CATEGORY (ID INT, PARENT_ID NUMERIC(5)) CREATE TABLE BAD_TYPE (ID INT, NAME VARCHAR(100)) CREATE TABLE SHOULD_BE_THERE (ID INT) diff --git a/test/mysql/src/test/resources/org/hibernate/tool/hbmlint/SchemaAnalyzer/drop.sql b/test/mysql/src/test/resources/org/hibernate/tool/hbmlint/SchemaAnalyzer/drop.sql index fb0c2a4396..b4df6a4507 100644 --- a/test/mysql/src/test/resources/org/hibernate/tool/hbmlint/SchemaAnalyzer/drop.sql +++ b/test/mysql/src/test/resources/org/hibernate/tool/hbmlint/SchemaAnalyzer/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 CATEGORY DROP TABLE BAD_TYPE DROP TABLE SHOULD_BE_THERE diff --git a/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/AutoQuote/create.sql b/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/AutoQuote/create.sql index a9eb825266..77f33a51b7 100644 --- a/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/AutoQuote/create.sql +++ b/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/AutoQuote/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 `us-ers` ( USERID INTEGER NOT NULL, DEPARTMENT VARCHAR(3), PRIMARY KEY (USERID) ) CREATE TABLE TYP ( INDEXID INTEGER NOT NULL, TEXT VARCHAR(10) NOT NULL, KORR INTEGER NOT NULL, PRIMARY KEY (INDEXID) ) CREATE TABLE WORKLOGS ( INDEXID INTEGER NOT NULL, LOGGEDID INTEGER NOT NULL, USERID INTEGER NOT NULL, TYP INTEGER NOT NULL, PRIMARY KEY (INDEXID, USERID), FOREIGN KEY (USERID) REFERENCES `us-ers`(USERID), FOREIGN KEY (TYP) REFERENCES TYP(INDEXID) ) diff --git a/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/AutoQuote/drop.sql b/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/AutoQuote/drop.sql index a8364462a9..849dbe1f03 100644 --- a/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/AutoQuote/drop.sql +++ b/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/AutoQuote/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 WORKLOGS drop table `us-ers` drop table TYP diff --git a/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/create.sql b/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/create.sql index 1c16fc2100..1ad59b1af9 100644 --- a/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/create.sql +++ b/test/mysql/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` int(11) NOT NULL auto_increment, `data` varchar(100) default NULL, PRIMARY KEY (`id`)) CREATE TABLE `noautoinc` (`id` int(11) NOT NULL, `data` varchar(100) default NULL, PRIMARY KEY (`id`)) diff --git a/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/drop.sql b/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/drop.sql index 69b8242aa0..7f3e9413ae 100644 --- a/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/Identity/drop.sql +++ b/test/mysql/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` diff --git a/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/RevEngForeignKey/drop.sql b/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/RevEngForeignKey/drop.sql index b3ed7c3c09..c82acd076b 100644 --- a/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/RevEngForeignKey/drop.sql +++ b/test/mysql/src/test/resources/org/hibernate/tool/jdbc2cfg/RevEngForeignKey/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. # +############################################################################ ALTER TABLE PROJECT DROP FOREIGN KEY PROJECT_MANAGER DROP TABLE WORKS_ON DROP TABLE EMPLOYEE