diff --git a/ant/docs/examples/native/.gitignore b/ant/docs/examples/native/.gitignore new file mode 100644 index 0000000000..a1cad39afa --- /dev/null +++ b/ant/docs/examples/native/.gitignore @@ -0,0 +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. # +############################################################################ +generated-sources +*.class \ No newline at end of file diff --git a/ant/docs/examples/native/Foo.hbm.xml b/ant/docs/examples/native/Foo.hbm.xml new file mode 100644 index 0000000000..501c81d493 --- /dev/null +++ b/ant/docs/examples/native/Foo.hbm.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ant/docs/examples/native/Foo.java b/ant/docs/examples/native/Foo.java new file mode 100644 index 0000000000..67f03da332 --- /dev/null +++ b/ant/docs/examples/native/Foo.java @@ -0,0 +1,10 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// +public class Foo { + + public int id; + public String bar; + +} diff --git a/ant/docs/examples/native/README.md b/ant/docs/examples/native/README.md new file mode 100644 index 0000000000..71b3c53674 --- /dev/null +++ b/ant/docs/examples/native/README.md @@ -0,0 +1,18 @@ + +To run this example: + - Have [Apache Ant](https://ant.apache.org) installed + - Issue `ant` from a command-line window \ No newline at end of file diff --git a/ant/docs/examples/native/build.xml b/ant/docs/examples/native/build.xml new file mode 100644 index 0000000000..57b99162a8 --- /dev/null +++ b/ant/docs/examples/native/build.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ant/docs/examples/native/hibernate.cfg.xml b/ant/docs/examples/native/hibernate.cfg.xml new file mode 100644 index 0000000000..0f475fe068 --- /dev/null +++ b/ant/docs/examples/native/hibernate.cfg.xml @@ -0,0 +1,10 @@ + + + + + org.h2.Driver + jdbc:h2:mem: + sa + + +