diff --git a/documentation/src/main/asciidoc/userguide/chapters/caching/Caching.adoc b/documentation/src/main/asciidoc/userguide/chapters/caching/Caching.adoc index ada512d2ec..e91fac3c83 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/caching/Caching.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/caching/Caching.adoc @@ -1,6 +1,6 @@ [[caching]] == Caching -:sourcedir: ../../../../../test/java/org/hibernate/jpa/test/userguide/caching +:sourcedir: ../../../../../test/java/org/hibernate/userguide/caching At runtime, Hibernate handles moving data into and out of the second-level cache in response to the operations performed by the `Session`, which acts as a transaction-level cache of persistent data. Once an entity becomes managed, that object is added to the internal cache of the current persistence context (`EntityManager` or `Session`). diff --git a/documentation/src/main/asciidoc/userguide/chapters/domain/associations.adoc b/documentation/src/main/asciidoc/userguide/chapters/domain/associations.adoc index fdcfe91097..bb6d232664 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/domain/associations.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/domain/associations.adoc @@ -1,6 +1,7 @@ [[associations]] === Associations -:sourcedir: ../../../../../test/java/org/hibernate/jpa/test/userguide/associations +:sourcedir: ../../../../../test/java/org/hibernate/userguide/associations +:extrasdir: extras/associations Associations describe how two or more entities form a relationship based on a database joining semantics. @@ -20,7 +21,7 @@ include::{sourcedir}/ManyToOneTest.java[tags=associations-many-to-one-example,in [source,sql] ---- -include::{sourcedir}/associations-many-to-one-example.sql[] +include::{extrasdir}/associations-many-to-one-example.sql[] ---- ==== @@ -36,7 +37,7 @@ include::{sourcedir}/ManyToOneTest.java[tags=associations-many-to-one-lifecycle- [source,sql] ---- -include::{sourcedir}/associations-many-to-one-lifecycle-example.sql[] +include::{extrasdir}/associations-many-to-one-lifecycle-example.sql[] ---- ==== @@ -62,7 +63,7 @@ include::{sourcedir}/OneToManyUnidirectionalTest.java[tags=associations-one-to-m [source,sql] ---- -include::{sourcedir}/associations-one-to-many-unidirectional-example.sql[] +include::{extrasdir}/associations-one-to-many-unidirectional-example.sql[] ---- ==== @@ -82,7 +83,7 @@ include::{sourcedir}/OneToManyUnidirectionalTest.java[tags=associations-one-to-m [source,sql] ---- -include::{sourcedir}/associations-one-to-many-unidirectional-lifecycle-example.sql[] +include::{extrasdir}/associations-one-to-many-unidirectional-lifecycle-example.sql[] ---- ==== @@ -115,7 +116,7 @@ include::{sourcedir}/OneToManyBidirectionalTest.java[tags=associations-one-to-ma [source,sql] ---- -include::{sourcedir}/associations-one-to-many-bidirectional-example.sql[] +include::{extrasdir}/associations-one-to-many-bidirectional-example.sql[] ---- ==== @@ -138,7 +139,7 @@ include::{sourcedir}/OneToManyBidirectionalTest.java[tags=associations-one-to-ma [source,sql] ---- -include::{sourcedir}/associations-one-to-many-bidirectional-lifecycle-example.sql[] +include::{extrasdir}/associations-one-to-many-bidirectional-lifecycle-example.sql[] ---- ==== @@ -167,7 +168,7 @@ include::{sourcedir}/OneToOneUnidirectionalTest.java[tags=associations-one-to-on [source,sql] ---- -include::{sourcedir}/associations-one-to-one-unidirectional-example.sql[] +include::{extrasdir}/associations-one-to-one-unidirectional-example.sql[] ---- ==== @@ -191,7 +192,7 @@ include::{sourcedir}/OneToOneBidirectionalTest.java[tags=associations-one-to-one [source,sql] ---- -include::{sourcedir}/associations-one-to-one-bidirectional-example.sql[] +include::{extrasdir}/associations-one-to-one-bidirectional-example.sql[] ---- ==== @@ -207,7 +208,7 @@ include::{sourcedir}/OneToOneBidirectionalTest.java[tags=associations-one-to-one [source,sql] ---- -include::{sourcedir}/associations-one-to-one-bidirectional-lifecycle-example.sql[] +include::{extrasdir}/associations-one-to-one-bidirectional-lifecycle-example.sql[] ---- ==== @@ -243,7 +244,7 @@ include::{sourcedir}/ManyToManyUnidirectionalTest.java[tags=associations-many-to [source,sql] ---- -include::{sourcedir}/associations-many-to-many-unidirectional-example.sql[] +include::{extrasdir}/associations-many-to-many-unidirectional-example.sql[] ---- ==== @@ -262,7 +263,7 @@ include::{sourcedir}/ManyToManyUnidirectionalTest.java[tags=associations-many-to [source,sql] ---- -include::{sourcedir}/associations-many-to-many-unidirectional-lifecycle-example.sql[] +include::{extrasdir}/associations-many-to-many-unidirectional-lifecycle-example.sql[] ---- ==== @@ -297,7 +298,7 @@ include::{sourcedir}/ManyToManyUnidirectionalTest.java[tags=associations-many-to [source,sql] ---- -include::{sourcedir}/associations-many-to-many-unidirectional-remove-example.sql[] +include::{extrasdir}/associations-many-to-many-unidirectional-remove-example.sql[] ---- ==== @@ -317,7 +318,7 @@ include::{sourcedir}/ManyToManyBidirectionalTest.java[tags=associations-many-to- [source,sql] ---- -include::{sourcedir}/associations-many-to-many-bidirectional-example.sql[] +include::{extrasdir}/associations-many-to-many-bidirectional-example.sql[] ---- ==== @@ -333,7 +334,7 @@ include::{sourcedir}/ManyToManyBidirectionalTest.java[tags=associations-many-to- [source,sql] ---- -include::{sourcedir}/associations-many-to-many-bidirectional-lifecycle-example.sql[] +include::{extrasdir}/associations-many-to-many-bidirectional-lifecycle-example.sql[] ---- ==== @@ -357,7 +358,7 @@ include::{sourcedir}/ManyToManyBidirectionalWithLinkEntityTest.java[tags=associa [source,sql] ---- -include::{sourcedir}/associations-many-to-many-bidirectional-with-link-entity-example.sql[] +include::{extrasdir}/associations-many-to-many-bidirectional-with-link-entity-example.sql[] ---- ==== @@ -382,7 +383,7 @@ include::{sourcedir}/ManyToManyBidirectionalWithLinkEntityTest.java[tags=associa [source,sql] ---- -include::{sourcedir}/associations-many-to-many-bidirectional-with-link-entity-lifecycle-example.sql[] +include::{extrasdir}/associations-many-to-many-bidirectional-with-link-entity-lifecycle-example.sql[] ---- ==== diff --git a/documentation/src/main/asciidoc/userguide/chapters/domain/collections.adoc b/documentation/src/main/asciidoc/userguide/chapters/domain/collections.adoc index 019a0b9651..6439ebd610 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/domain/collections.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/domain/collections.adoc @@ -1,6 +1,7 @@ [[collections]] === Collections -:sourcedir: ../../../../../test/java/org/hibernate/jpa/test/userguide/collections +:sourcedir: ../../../../../test/java/org/hibernate/userguide/collections +:extrasdir: extras/collections Naturally Hibernate also allows to persist collections. These persistent collections can contain almost any other Hibernate type, including: basic types, custom types, components and references to other entities. @@ -76,7 +77,7 @@ include::{sourcedir}/BasicTypeElementCollectionTest.java[tags=collections-value- [source,sql] ---- -include::{sourcedir}/collections-value-type-collection-lifecycle-example.sql[] +include::{extrasdir}/collections-value-type-collection-lifecycle-example.sql[] ---- ==== @@ -92,7 +93,7 @@ include::{sourcedir}/BasicTypeElementCollectionTest.java[tags=collections-value- [source,sql] ---- -include::{sourcedir}/collections-value-type-collection-remove-example.sql[] +include::{extrasdir}/collections-value-type-collection-remove-example.sql[] ---- ==== @@ -111,7 +112,7 @@ include::{sourcedir}/BasicTypeOrderColumnElementCollectionTest.java[tags=collect [source,sql] ---- -include::{sourcedir}/collections-value-type-collection-order-column-remove-example.sql[] +include::{extrasdir}/collections-value-type-collection-order-column-remove-example.sql[] ---- ==== @@ -136,7 +137,7 @@ include::{sourcedir}/EmbeddableTypeElementCollectionTest.java[tags=collections-e [source,sql] ---- -include::{sourcedir}/collections-embeddable-type-collection-lifecycle-example.sql[] +include::{extrasdir}/collections-embeddable-type-collection-lifecycle-example.sql[] ---- ==== @@ -187,7 +188,7 @@ include::{sourcedir}/UnidirectionalBagTest.java[tags=collections-unidirectional- [source,sql] ---- -include::{sourcedir}/collections-unidirectional-bag-example.sql[] +include::{extrasdir}/collections-unidirectional-bag-example.sql[] ---- ==== @@ -209,7 +210,7 @@ include::{sourcedir}/UnidirectionalBagTest.java[tags=collections-unidirectional- [source,sql] ---- -include::{sourcedir}/collections-unidirectional-bag-lifecycle-example.sql[] +include::{extrasdir}/collections-unidirectional-bag-lifecycle-example.sql[] ---- ==== @@ -237,7 +238,7 @@ include::{sourcedir}/BidirectionalBagTest.java[tags=collections-bidirectional-ba [source,sql] ---- -include::{sourcedir}/collections-bidirectional-bag-example.sql[] +include::{extrasdir}/collections-bidirectional-bag-example.sql[] ---- ==== @@ -251,7 +252,7 @@ include::{sourcedir}/BidirectionalBagTest.java[tags=collections-bidirectional-ba [source,sql] ---- -include::{sourcedir}/collections-bidirectional-bag-lifecycle-example.sql[] +include::{extrasdir}/collections-bidirectional-bag-lifecycle-example.sql[] ---- ==== @@ -265,7 +266,7 @@ include::{sourcedir}/BidirectionalBagOrphanRemovalTest.java[tags=collections-bid [source,sql] ---- -include::{sourcedir}/collections-bidirectional-bag-orphan-removal-example.sql[] +include::{extrasdir}/collections-bidirectional-bag-orphan-removal-example.sql[] ---- ==== @@ -302,7 +303,7 @@ Upon fetching the collection, Hibernate generates the following select statement ==== [source,sql] ---- -include::{sourcedir}/collections-unidirectional-ordered-list-order-by-select-example.sql[] +include::{extrasdir}/collections-unidirectional-ordered-list-order-by-select-example.sql[] ---- ==== @@ -327,7 +328,7 @@ include::{sourcedir}/UnidirectionalOrderColumnListTest.java[tags=collections-uni [source,sql] ---- -include::{sourcedir}/collections-unidirectional-ordered-list-order-column-example.sql[] +include::{extrasdir}/collections-unidirectional-ordered-list-order-column-example.sql[] ---- ==== @@ -339,7 +340,7 @@ When fetching the list, the following select query is executed: ==== [source,sql] ---- -include::{sourcedir}/collections-unidirectional-ordered-list-order-column-select-example.sql[] +include::{extrasdir}/collections-unidirectional-ordered-list-order-column-select-example.sql[] ---- ==== @@ -373,7 +374,7 @@ include::{sourcedir}/BidirectionalOrderColumnListTest.java[tags=collections-bidi [source,sql] ---- -include::{sourcedir}/collections-bidirectional-ordered-list-order-column-example.sql[] +include::{extrasdir}/collections-bidirectional-ordered-list-order-column-example.sql[] ---- ==== @@ -499,7 +500,7 @@ include::{sourcedir}/ElementCollectionMapTest.java[tags=collections-map-value-ty [source,sql] ---- -include::{sourcedir}/collections-map-value-type-entity-key-example.sql[] +include::{extrasdir}/collections-map-value-type-entity-key-example.sql[] ---- ==== @@ -515,7 +516,7 @@ include::{sourcedir}/ElementCollectionMapTest.java[tags=collections-map-value-ty [source,sql] ---- -include::{sourcedir}/collections-map-value-type-entity-key-add-example.sql[] +include::{extrasdir}/collections-map-value-type-entity-key-add-example.sql[] ---- ==== @@ -536,7 +537,7 @@ include::{sourcedir}/UnidirectionalMapTest.java[tags=collections-map-unidirectio [source,sql] ---- -include::{sourcedir}/collections-map-unidirectional-example.sql[] +include::{extrasdir}/collections-map-unidirectional-example.sql[] ---- ==== @@ -556,7 +557,7 @@ include::{sourcedir}/BidirectionalMapTest.java[tags=collections-map-bidirectiona [source,sql] ---- -include::{sourcedir}/collections-map-bidirectional-example.sql[] +include::{extrasdir}/collections-map-bidirectional-example.sql[] ---- ==== @@ -582,7 +583,7 @@ include::{sourcedir}/ArrayTest.java[tags=collections-array-binary-example,indent [source,sql] ---- -include::{sourcedir}/collections-array-binary-example.sql[] +include::{extrasdir}/collections-array-binary-example.sql[] ---- ==== @@ -620,7 +621,7 @@ include::{sourcedir}/BasicTypeCollectionTest.java[tags=collections-comma-delimit [source,sql] ---- -include::{sourcedir}/collections-comma-delimited-collection-lifecycle-example.sql[] +include::{extrasdir}/collections-comma-delimited-collection-lifecycle-example.sql[] ---- ==== diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-bidirectional-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-bidirectional-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-bidirectional-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-bidirectional-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-bidirectional-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-bidirectional-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-bidirectional-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-bidirectional-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-bidirectional-with-link-entity-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-bidirectional-with-link-entity-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-bidirectional-with-link-entity-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-bidirectional-with-link-entity-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-bidirectional-with-link-entity-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-bidirectional-with-link-entity-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-bidirectional-with-link-entity-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-bidirectional-with-link-entity-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-unidirectional-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-unidirectional-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-unidirectional-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-unidirectional-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-unidirectional-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-unidirectional-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-unidirectional-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-unidirectional-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-unidirectional-remove-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-unidirectional-remove-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-many-unidirectional-remove-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-many-unidirectional-remove-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-one-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-one-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-one-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-one-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-one-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-one-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-many-to-one-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-many-to-one-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-many-bidirectional-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-many-bidirectional-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-many-bidirectional-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-many-bidirectional-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-many-bidirectional-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-many-bidirectional-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-many-bidirectional-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-many-bidirectional-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-many-unidirectional-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-many-unidirectional-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-many-unidirectional-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-many-unidirectional-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-many-unidirectional-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-many-unidirectional-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-many-unidirectional-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-many-unidirectional-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-one-bidirectional-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-one-bidirectional-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-one-bidirectional-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-one-bidirectional-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-one-bidirectional-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-one-bidirectional-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-one-bidirectional-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-one-bidirectional-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-one-unidirectional-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-one-unidirectional-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/associations-one-to-one-unidirectional-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/associations/associations-one-to-one-unidirectional-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-array-binary-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-array-binary-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-array-binary-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-array-binary-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-bidirectional-bag-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-bidirectional-bag-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-bidirectional-bag-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-bidirectional-bag-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-bidirectional-bag-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-bidirectional-bag-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-bidirectional-bag-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-bidirectional-bag-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-bidirectional-bag-orphan-removal-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-bidirectional-bag-orphan-removal-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-bidirectional-bag-orphan-removal-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-bidirectional-bag-orphan-removal-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-bidirectional-ordered-list-order-column-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-bidirectional-ordered-list-order-column-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-bidirectional-ordered-list-order-column-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-bidirectional-ordered-list-order-column-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-comma-delimited-collection-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-comma-delimited-collection-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-comma-delimited-collection-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-comma-delimited-collection-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-embeddable-type-collection-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-embeddable-type-collection-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-embeddable-type-collection-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-embeddable-type-collection-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-map-bidirectional-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-map-bidirectional-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-map-bidirectional-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-map-bidirectional-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-map-unidirectional-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-map-unidirectional-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-map-unidirectional-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-map-unidirectional-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-map-value-type-entity-key-add-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-map-value-type-entity-key-add-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-map-value-type-entity-key-add-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-map-value-type-entity-key-add-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-map-value-type-entity-key-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-map-value-type-entity-key-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-map-value-type-entity-key-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-map-value-type-entity-key-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-unidirectional-bag-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-unidirectional-bag-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-unidirectional-bag-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-unidirectional-bag-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-unidirectional-bag-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-unidirectional-bag-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-unidirectional-bag-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-unidirectional-bag-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-unidirectional-ordered-list-order-by-select-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-unidirectional-ordered-list-order-by-select-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-unidirectional-ordered-list-order-by-select-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-unidirectional-ordered-list-order-by-select-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-unidirectional-ordered-list-order-column-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-unidirectional-ordered-list-order-column-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-unidirectional-ordered-list-order-column-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-unidirectional-ordered-list-order-column-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-unidirectional-ordered-list-order-column-select-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-unidirectional-ordered-list-order-column-select-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-unidirectional-ordered-list-order-column-select-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-unidirectional-ordered-list-order-column-select-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-value-type-collection-lifecycle-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-value-type-collection-lifecycle-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-value-type-collection-lifecycle-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-value-type-collection-lifecycle-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-value-type-collection-order-column-remove-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-value-type-collection-order-column-remove-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-value-type-collection-order-column-remove-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-value-type-collection-order-column-remove-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-value-type-collection-remove-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-value-type-collection-remove-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/collections-value-type-collection-remove-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-value-type-collection-remove-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-joined-table-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-joined-table-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-joined-table-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-joined-table-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-joined-table-primary-key-join-column-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-joined-table-primary-key-join-column-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-joined-table-primary-key-join-column-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-joined-table-primary-key-join-column-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-joined-table-query-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-joined-table-query-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-joined-table-query-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-joined-table-query-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-mapped-superclass-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-mapped-superclass-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-mapped-superclass-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-mapped-superclass-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-single-table-discriminator-formula-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-single-table-discriminator-formula-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-single-table-discriminator-formula-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-single-table-discriminator-formula-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-single-table-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-single-table-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-single-table-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-single-table-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-single-table-persist-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-single-table-persist-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-single-table-persist-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-single-table-persist-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-single-table-query-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-single-table-query-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-single-table-query-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-single-table-query-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-table-per-class-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-table-per-class-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-table-per-class-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-table-per-class-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-table-per-class-query-example.sql b/documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-table-per-class-query-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/entity-inheritance-table-per-class-query-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/domain/extras/inheritance/entity-inheritance-table-per-class-query-example.sql diff --git a/documentation/src/main/asciidoc/userguide/chapters/domain/inheritance.adoc b/documentation/src/main/asciidoc/userguide/chapters/domain/inheritance.adoc index 55b5d22352..c832bce474 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/domain/inheritance.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/domain/inheritance.adoc @@ -1,6 +1,7 @@ [[entity-inheritance]] === Inheritance -:sourcedir: ../../../../../test/java/org/hibernate/jpa/test/userguide/inheritance +:sourcedir: ../../../../../test/java/org/hibernate/userguide/inheritance +:extrasdir: extras/inheritance Although relational database systems don't provide support for inheritance, Hibernate provides several strategies to leverage this object-oriented trait onto domain model entities: @@ -28,7 +29,7 @@ include::{sourcedir}/MappedSuperclassTest.java[tags=entity-inheritance-mapped-su [source,sql] ---- -include::{sourcedir}/entity-inheritance-mapped-superclass-example.sql[] +include::{extrasdir}/entity-inheritance-mapped-superclass-example.sql[] ---- ==== @@ -60,7 +61,7 @@ include::{sourcedir}/SingleTableTest.java[tags=entity-inheritance-single-table-e [source,sql] ---- -include::{sourcedir}/entity-inheritance-single-table-example.sql[] +include::{extrasdir}/entity-inheritance-single-table-example.sql[] ---- ==== @@ -77,7 +78,7 @@ include::{sourcedir}/SingleTableTest.java[tags=entity-inheritance-single-table-p [source,sql] ---- -include::{sourcedir}/entity-inheritance-single-table-persist-example.sql[] +include::{extrasdir}/entity-inheritance-single-table-persist-example.sql[] ---- ==== @@ -124,7 +125,7 @@ include::{sourcedir}/SingleTableDiscriminatorFormulaTest.java[tags=entity-inheri [source,sql] ---- -include::{sourcedir}/entity-inheritance-single-table-discriminator-formula-example.sql[] +include::{extrasdir}/entity-inheritance-single-table-discriminator-formula-example.sql[] ---- ==== @@ -149,7 +150,7 @@ include::{sourcedir}/SingleTableTest.java[tags=entity-inheritance-single-table-q [source,sql] ---- -include::{sourcedir}/entity-inheritance-single-table-query-example.sql[] +include::{extrasdir}/entity-inheritance-single-table-query-example.sql[] ---- ==== @@ -173,7 +174,7 @@ include::{sourcedir}/JoinTableTest.java[tags=entity-inheritance-joined-table-exa [source,sql] ---- -include::{sourcedir}/entity-inheritance-joined-table-example.sql[] +include::{extrasdir}/entity-inheritance-joined-table-example.sql[] ---- ==== @@ -195,7 +196,7 @@ include::{sourcedir}/JoinTablePrimaryKeyJoinColumnTest.java[tags=entity-inherita [source,sql] ---- -include::{sourcedir}/entity-inheritance-joined-table-primary-key-join-column-example.sql[] +include::{extrasdir}/entity-inheritance-joined-table-primary-key-join-column-example.sql[] ---- ==== @@ -211,7 +212,7 @@ include::{sourcedir}/JoinTableTest.java[tags=entity-inheritance-joined-table-que [source,sql] ---- -include::{sourcedir}/entity-inheritance-joined-table-query-example.sql[] +include::{extrasdir}/entity-inheritance-joined-table-query-example.sql[] ---- ==== @@ -241,7 +242,7 @@ include::{sourcedir}/TablePerClassTest.java[tags=entity-inheritance-table-per-cl [source,sql] ---- -include::{sourcedir}/entity-inheritance-table-per-class-example.sql[] +include::{extrasdir}/entity-inheritance-table-per-class-example.sql[] ---- ==== @@ -256,7 +257,7 @@ include::{sourcedir}/TablePerClassTest.java[tags=entity-inheritance-table-per-cl [source,sql] ---- -include::{sourcedir}/entity-inheritance-table-per-class-query-example.sql[] +include::{extrasdir}/entity-inheritance-table-per-class-query-example.sql[] ---- ==== diff --git a/documentation/src/main/asciidoc/userguide/chapters/domain/naming.adoc b/documentation/src/main/asciidoc/userguide/chapters/domain/naming.adoc index 695eeb1a28..830f7a4b92 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/domain/naming.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/domain/naming.adoc @@ -1,6 +1,6 @@ [[naming]] === Naming strategies -:sourcedir: ../../../../../test/java/org/hibernate/jpa/test/userguide/naming +:sourcedir: ../../../../../test/java/org/hibernate/userguide/naming Part of the mapping of an object model to the relational database is mapping names from the object model to the corresponding database names. diff --git a/documentation/src/main/asciidoc/userguide/chapters/flushing/Flushing.adoc b/documentation/src/main/asciidoc/userguide/chapters/flushing/Flushing.adoc index 1364e965ac..070b12dc00 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/flushing/Flushing.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/flushing/Flushing.adoc @@ -1,6 +1,7 @@ [[flushing]] == Flushing -:sourcedir: ../../../../../test/java/org/hibernate/jpa/test/userguide/flush +:sourcedir: ../../../../../test/java/org/hibernate/userguide/flush +:extrasdir: extras Flushing is the process of synchronizing the state of the persistence context with the underlying database. The `EntityManager` and the Hibernate `Session` expose a set of methods, through which the application developer can change the persistent state of an entity. @@ -47,7 +48,7 @@ include::{sourcedir}/AutoFlushTest.java[tags=flushing-auto-flush-commit-example] [source, SQL, indent=0] ---- -include::{sourcedir}/flushing-auto-flush-commit-example.sql[] +include::{extrasdir}/flushing-auto-flush-commit-example.sql[] ---- ==== @@ -74,7 +75,7 @@ include::{sourcedir}/AutoFlushTest.java[tags=flushing-auto-flush-jpql-example] [source, SQL, indent=0] ---- -include::{sourcedir}/flushing-auto-flush-jpql-example.sql[] +include::{extrasdir}/flushing-auto-flush-jpql-example.sql[] ---- ==== @@ -101,7 +102,7 @@ include::{sourcedir}/AutoFlushTest.java[tags=flushing-auto-flush-jpql-overlap-ex [source, SQL, indent=0] ---- -include::{sourcedir}/flushing-auto-flush-jpql-overlap-example.sql[] +include::{extrasdir}/flushing-auto-flush-jpql-overlap-example.sql[] ---- ==== @@ -164,7 +165,7 @@ include::{sourcedir}/CommitFlushTest.java[tags=flushing-commit-flush-jpql-exampl [source, SQL, indent=0] ---- -include::{sourcedir}/flushing-commit-flush-jpql-example.sql[] +include::{extrasdir}/flushing-commit-flush-jpql-example.sql[] ---- ==== @@ -180,7 +181,7 @@ include::{sourcedir}/CommitFlushTest.java[tags=flushing-commit-flush-sql-example [source, SQL, indent=0] ---- -include::{sourcedir}/flushing-commit-flush-sql-example.sql[] +include::{extrasdir}/flushing-commit-flush-sql-example.sql[] ---- ==== @@ -204,7 +205,7 @@ include::{sourcedir}/AlwaysFlushTest.java[tags=flushing-always-flush-sql-example [source, SQL, indent=0] ---- -include::{sourcedir}/flushing-always-flush-sql-example.sql[] +include::{extrasdir}/flushing-always-flush-sql-example.sql[] ---- ==== @@ -224,7 +225,7 @@ include::{sourcedir}/ManualFlushTest.java[tags=flushing-manual-flush-example] [source, SQL, indent=0] ---- -include::{sourcedir}/flushing-manual-flush-example.sql[] +include::{extrasdir}/flushing-manual-flush-example.sql[] ---- ==== diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-always-flush-sql-example.sql b/documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-always-flush-sql-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-always-flush-sql-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-always-flush-sql-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-auto-flush-commit-example.sql b/documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-auto-flush-commit-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-auto-flush-commit-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-auto-flush-commit-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-auto-flush-jpql-example.sql b/documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-auto-flush-jpql-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-auto-flush-jpql-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-auto-flush-jpql-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-auto-flush-jpql-overlap-example.sql b/documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-auto-flush-jpql-overlap-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-auto-flush-jpql-overlap-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-auto-flush-jpql-overlap-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-commit-flush-jpql-example.sql b/documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-commit-flush-jpql-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-commit-flush-jpql-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-commit-flush-jpql-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-commit-flush-sql-example.sql b/documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-commit-flush-sql-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-commit-flush-sql-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-commit-flush-sql-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-manual-flush-example.sql b/documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-manual-flush-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/flushing-manual-flush-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/flushing/extras/flushing-manual-flush-example.sql diff --git a/documentation/src/main/asciidoc/userguide/chapters/locking/Locking.adoc b/documentation/src/main/asciidoc/userguide/chapters/locking/Locking.adoc index 36bb0e3fe0..3833667c01 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/locking/Locking.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/locking/Locking.adoc @@ -1,6 +1,7 @@ [[locking]] == Locking :sourcedir: extras +:extrasdir: extras In a relational database, locking refers to actions taken to prevent data from changing between the time it is read and the time is used. @@ -184,12 +185,12 @@ The scope can either be `NORMAL` (default value) or `EXTENDED`. The `EXTENDED` s ==== [source, JAVA, indent=0] ---- -include::{sourcedir}/../../../../../../test/java/org/hibernate/jpa/test/userguide/locking/ExplicitLockingTest.java[tags=locking-jpa-query-hints-timeout-example] +include::{sourcedir}/../../../../../../test/java/org/hibernate/userguide/locking/ExplicitLockingTest.java[tags=locking-jpa-query-hints-timeout-example] ---- [source, SQL, indent=0] ---- -include::{sourcedir}/../../../../../../test/java/org/hibernate/jpa/test/userguide/locking/locking-jpa-query-hints-timeout-example.sql[] +include::{extrasdir}/locking-jpa-query-hints-timeout-example.sql[] ---- ==== @@ -217,11 +218,11 @@ The following example shows how to obtain shared database lock without waiting f ==== [source, JAVA, indent=0] ---- -include::{sourcedir}/../../../../../../test/java/org/hibernate/jpa/test/userguide/locking/ExplicitLockingTest.java[tags=locking-buildLockRequest-example] +include::{sourcedir}/../../../../../../test/java/org/hibernate/userguide/locking/ExplicitLockingTest.java[tags=locking-buildLockRequest-example] ---- [source, SQL, indent=0] ---- -include::{sourcedir}/../../../../../../test/java/org/hibernate/jpa/test/userguide/locking/locking-buildLockRequest-example.sql[] +include::{extrasdir}/locking-buildLockRequest-example.sql[] ---- ==== \ No newline at end of file diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/locking/locking-buildLockRequest-example.sql b/documentation/src/main/asciidoc/userguide/chapters/locking/extras/locking-buildLockRequest-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/locking/locking-buildLockRequest-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/locking/extras/locking-buildLockRequest-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/locking/locking-jpa-query-hints-scope-example.sql b/documentation/src/main/asciidoc/userguide/chapters/locking/extras/locking-jpa-query-hints-scope-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/locking/locking-jpa-query-hints-scope-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/locking/extras/locking-jpa-query-hints-scope-example.sql diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/locking/locking-jpa-query-hints-timeout-example.sql b/documentation/src/main/asciidoc/userguide/chapters/locking/extras/locking-jpa-query-hints-timeout-example.sql similarity index 100% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/locking/locking-jpa-query-hints-timeout-example.sql rename to documentation/src/main/asciidoc/userguide/chapters/locking/extras/locking-jpa-query-hints-timeout-example.sql diff --git a/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc b/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc index 83556ef0a0..d255788384 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc @@ -316,7 +316,7 @@ the `evict()` method can be used to remove the object and its collections from t ==== [source, JAVA, indent=0] ---- -include::{sourcedir}/../../../../../../test/java/org/hibernate/jpa/test/userguide/caching/FirstLevelCacheTest.java[tags=caching-management-jpa-detach-example] +include::{sourcedir}/../../../../../../test/java/org/hibernate/userguide/caching/FirstLevelCacheTest.java[tags=caching-management-jpa-detach-example] ---- ==== @@ -325,7 +325,7 @@ include::{sourcedir}/../../../../../../test/java/org/hibernate/jpa/test/userguid ==== [source, JAVA, indent=0] ---- -include::{sourcedir}/../../../../../../test/java/org/hibernate/jpa/test/userguide/caching/FirstLevelCacheTest.java[tags=caching-management-native-evict-example] +include::{sourcedir}/../../../../../../test/java/org/hibernate/userguide/caching/FirstLevelCacheTest.java[tags=caching-management-native-evict-example] ---- ==== @@ -336,7 +336,7 @@ To detach all entities from the current persistence context, both the `EntityMan ==== [source, JAVA, indent=0] ---- -include::{sourcedir}/../../../../../../test/java/org/hibernate/jpa/test/userguide/caching/FirstLevelCacheTest.java[tags=caching-management-clear-example] +include::{sourcedir}/../../../../../../test/java/org/hibernate/userguide/caching/FirstLevelCacheTest.java[tags=caching-management-clear-example] ---- ==== @@ -347,6 +347,6 @@ To verify if an entity instance is currently attached to the running persistence ==== [source, JAVA, indent=0] ---- -include::{sourcedir}/../../../../../../test/java/org/hibernate/jpa/test/userguide/caching/FirstLevelCacheTest.java[tags=caching-management-contains-example] +include::{sourcedir}/../../../../../../test/java/org/hibernate/userguide/caching/FirstLevelCacheTest.java[tags=caching-management-contains-example] ---- ==== \ No newline at end of file diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/BidirectionalTwoOneToManyMapsIdTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/BidirectionalTwoOneToManyMapsIdTest.java similarity index 98% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/BidirectionalTwoOneToManyMapsIdTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/BidirectionalTwoOneToManyMapsIdTest.java index 96ae2ba6b6..b438046c6f 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/BidirectionalTwoOneToManyMapsIdTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/BidirectionalTwoOneToManyMapsIdTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import java.io.Serializable; import java.util.ArrayList; @@ -26,7 +26,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/CompositeIdAssociationTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/CompositeIdAssociationTest.java similarity index 97% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/CompositeIdAssociationTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/CompositeIdAssociationTest.java index 915e51d160..d8d4774252 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/CompositeIdAssociationTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/CompositeIdAssociationTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import java.io.Serializable; import java.util.Objects; @@ -18,7 +18,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/DerivedIdentifierPrimaryKeyJoinColumnTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/DerivedIdentifierPrimaryKeyJoinColumnTest.java similarity index 94% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/DerivedIdentifierPrimaryKeyJoinColumnTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/DerivedIdentifierPrimaryKeyJoinColumnTest.java index 1a664040fa..e14121e765 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/DerivedIdentifierPrimaryKeyJoinColumnTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/DerivedIdentifierPrimaryKeyJoinColumnTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import javax.persistence.Entity; import javax.persistence.GeneratedValue; @@ -18,7 +18,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Assert; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/DerivedIdentifierTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/DerivedIdentifierTest.java similarity index 94% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/DerivedIdentifierTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/DerivedIdentifierTest.java index d443e6d1a8..58148de306 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/DerivedIdentifierTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/DerivedIdentifierTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import javax.persistence.Entity; import javax.persistence.GeneratedValue; @@ -18,7 +18,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Assert; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToManyBidirectionalTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/ManyToManyBidirectionalTest.java similarity index 97% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToManyBidirectionalTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/ManyToManyBidirectionalTest.java index 8503816506..41b4382e4c 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToManyBidirectionalTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/ManyToManyBidirectionalTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import java.util.ArrayList; import java.util.List; @@ -20,7 +20,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToManyBidirectionalWithLinkEntityTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/ManyToManyBidirectionalWithLinkEntityTest.java similarity index 97% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToManyBidirectionalWithLinkEntityTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/ManyToManyBidirectionalWithLinkEntityTest.java index 280111e8e1..91648f4f4f 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToManyBidirectionalWithLinkEntityTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/ManyToManyBidirectionalWithLinkEntityTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import java.io.Serializable; import java.util.ArrayList; @@ -24,7 +24,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToManyUnidirectionalTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/ManyToManyUnidirectionalTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToManyUnidirectionalTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/ManyToManyUnidirectionalTest.java index 604d566b70..58e0e84de9 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToManyUnidirectionalTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/ManyToManyUnidirectionalTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import java.util.ArrayList; import java.util.List; @@ -20,7 +20,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToOneTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/ManyToOneTest.java similarity index 94% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToOneTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/ManyToOneTest.java index 0a88aefe2b..96762f0c06 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/ManyToOneTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/ManyToOneTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import javax.persistence.Entity; import javax.persistence.ForeignKey; @@ -17,7 +17,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToManyBidirectionalTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/OneToManyBidirectionalTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToManyBidirectionalTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/OneToManyBidirectionalTest.java index 2802e88c3c..00195dbac1 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToManyBidirectionalTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/OneToManyBidirectionalTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import java.util.ArrayList; import java.util.List; @@ -22,7 +22,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToManyUnidirectionalTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/OneToManyUnidirectionalTest.java similarity index 94% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToManyUnidirectionalTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/OneToManyUnidirectionalTest.java index 749e63f95f..6b7d9c39f7 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToManyUnidirectionalTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/OneToManyUnidirectionalTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import java.util.ArrayList; import java.util.List; @@ -18,7 +18,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToOneBidirectionalTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/OneToOneBidirectionalTest.java similarity index 97% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToOneBidirectionalTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/OneToOneBidirectionalTest.java index e8b844ff7b..36fa0eb53b 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToOneBidirectionalTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/OneToOneBidirectionalTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import javax.persistence.CascadeType; import javax.persistence.Entity; @@ -21,7 +21,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToOneUnidirectionalTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/OneToOneUnidirectionalTest.java similarity index 94% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToOneUnidirectionalTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/OneToOneUnidirectionalTest.java index d00bc6a2a1..432f23d4c2 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/OneToOneUnidirectionalTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/OneToOneUnidirectionalTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import javax.persistence.Entity; import javax.persistence.GeneratedValue; @@ -16,7 +16,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/UnidirectionalManyToManyRemoveTest.java b/documentation/src/test/java/org/hibernate/userguide/associations/UnidirectionalManyToManyRemoveTest.java similarity index 95% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/UnidirectionalManyToManyRemoveTest.java rename to documentation/src/test/java/org/hibernate/userguide/associations/UnidirectionalManyToManyRemoveTest.java index 1f87a5a397..0873255170 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/associations/UnidirectionalManyToManyRemoveTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/associations/UnidirectionalManyToManyRemoveTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.associations; +package org.hibernate.userguide.associations; import java.util.ArrayList; import java.util.List; @@ -20,7 +20,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/caching/FirstLevelCacheTest.java b/documentation/src/test/java/org/hibernate/userguide/caching/FirstLevelCacheTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/caching/FirstLevelCacheTest.java rename to documentation/src/test/java/org/hibernate/userguide/caching/FirstLevelCacheTest.java index 272e3c9c54..d2a2a26b20 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/caching/FirstLevelCacheTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/caching/FirstLevelCacheTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.caching; +package org.hibernate.userguide.caching; import java.util.ArrayList; import java.util.List; @@ -23,7 +23,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/caching/NonStrictReadWriteCacheTest.java b/documentation/src/test/java/org/hibernate/userguide/caching/NonStrictReadWriteCacheTest.java similarity index 97% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/caching/NonStrictReadWriteCacheTest.java rename to documentation/src/test/java/org/hibernate/userguide/caching/NonStrictReadWriteCacheTest.java index 098e6eeff1..c76396a9f3 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/caching/NonStrictReadWriteCacheTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/caching/NonStrictReadWriteCacheTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.caching; +package org.hibernate.userguide.caching; import java.util.ArrayList; import java.util.List; @@ -28,7 +28,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/caching/SecondLevelCacheTest.java b/documentation/src/test/java/org/hibernate/userguide/caching/SecondLevelCacheTest.java similarity index 98% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/caching/SecondLevelCacheTest.java rename to documentation/src/test/java/org/hibernate/userguide/caching/SecondLevelCacheTest.java index 4660589392..c6866c1683 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/caching/SecondLevelCacheTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/caching/SecondLevelCacheTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.caching; +package org.hibernate.userguide.caching; import java.util.HashMap; import java.util.List; @@ -32,7 +32,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; import static org.junit.Assert.assertNotNull; diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/ArrayTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/ArrayTest.java similarity index 92% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/ArrayTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/ArrayTest.java index 3b4bd03dc0..f184822837 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/ArrayTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/ArrayTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import javax.persistence.Entity; import javax.persistence.Id; @@ -13,7 +13,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BasicTypeCollectionTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BasicTypeCollectionTest.java similarity index 90% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BasicTypeCollectionTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BasicTypeCollectionTest.java index c39a5bf7e6..d083b8fb35 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BasicTypeCollectionTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BasicTypeCollectionTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -13,14 +13,14 @@ import javax.persistence.Id; import org.hibernate.annotations.Type; import org.hibernate.cfg.Configuration; -import org.hibernate.jpa.test.userguide.collections.type.CommaDelimitedStringsType; +import org.hibernate.userguide.collections.type.CommaDelimitedStringsType; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInHibernate; +import static org.hibernate.userguide.util.TransactionUtil.doInHibernate; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BasicTypeElementCollectionTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BasicTypeElementCollectionTest.java similarity index 95% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BasicTypeElementCollectionTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BasicTypeElementCollectionTest.java index f747dbc1f9..d9ecbe338a 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BasicTypeElementCollectionTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BasicTypeElementCollectionTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -18,7 +18,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BasicTypeOrderColumnElementCollectionTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BasicTypeOrderColumnElementCollectionTest.java similarity index 94% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BasicTypeOrderColumnElementCollectionTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BasicTypeOrderColumnElementCollectionTest.java index 455557db20..c0bf37cbcf 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BasicTypeOrderColumnElementCollectionTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BasicTypeOrderColumnElementCollectionTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -19,7 +19,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalBagOrphanRemovalTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalBagOrphanRemovalTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalBagOrphanRemovalTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalBagOrphanRemovalTest.java index 29b9ba0a90..0f909a3125 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalBagOrphanRemovalTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalBagOrphanRemovalTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -21,7 +21,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalBagTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalBagTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalBagTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalBagTest.java index 4511c9c826..94ccd6c226 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalBagTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalBagTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -21,7 +21,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalComparatorSortedSetTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalComparatorSortedSetTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalComparatorSortedSetTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalComparatorSortedSetTest.java index 86c3ad6f84..05f44998ee 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalComparatorSortedSetTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalComparatorSortedSetTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.Comparator; import java.util.Objects; @@ -27,7 +27,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalMapTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalMapTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalMapTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalMapTest.java index c448406889..1555dd26c2 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalMapTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalMapTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.sql.Timestamp; import java.time.LocalDateTime; @@ -25,7 +25,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Assert; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalOrderByListTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalOrderByListTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalOrderByListTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalOrderByListTest.java index dd77b562a8..8f6f9eecf7 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalOrderByListTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalOrderByListTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -22,7 +22,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalOrderColumnListTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalOrderColumnListTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalOrderColumnListTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalOrderColumnListTest.java index 90c7ad54d3..19f2bbf2c0 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalOrderColumnListTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalOrderColumnListTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -22,7 +22,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalSetTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalSetTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalSetTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalSetTest.java index 929729a711..d32990910c 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalSetTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalSetTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.HashSet; import java.util.Objects; @@ -22,7 +22,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Assert; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalSortedSetTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalSortedSetTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalSortedSetTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalSortedSetTest.java index 05d3182506..8d3aacd477 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/BidirectionalSortedSetTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/BidirectionalSortedSetTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.Objects; import java.util.Set; @@ -26,7 +26,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/ElementCollectionMapTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/ElementCollectionMapTest.java similarity index 95% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/ElementCollectionMapTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/ElementCollectionMapTest.java index cd2971e60d..eff94e74f4 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/ElementCollectionMapTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/ElementCollectionMapTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.Date; import java.util.HashMap; @@ -24,7 +24,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Assert; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/EmbeddableTypeElementCollectionTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/EmbeddableTypeElementCollectionTest.java similarity index 94% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/EmbeddableTypeElementCollectionTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/EmbeddableTypeElementCollectionTest.java index 35f10a0b21..d4fec4d670 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/EmbeddableTypeElementCollectionTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/EmbeddableTypeElementCollectionTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -17,7 +17,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalBagTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalBagTest.java similarity index 94% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalBagTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalBagTest.java index 3f8b09cb30..27251f4c2d 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalBagTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalBagTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -17,7 +17,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalComparatorSortedSetTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalComparatorSortedSetTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalComparatorSortedSetTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalComparatorSortedSetTest.java index d74d3a8c9a..9ccc58235f 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalComparatorSortedSetTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalComparatorSortedSetTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.Comparator; import java.util.Objects; @@ -25,7 +25,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalMapTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalMapTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalMapTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalMapTest.java index fe91b9b767..0cd1cce239 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalMapTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalMapTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.sql.Timestamp; import java.time.LocalDateTime; @@ -27,7 +27,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Assert; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalOrderColumnListTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalOrderColumnListTest.java similarity index 94% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalOrderColumnListTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalOrderColumnListTest.java index e550ad2013..f9a3f6ae56 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalOrderColumnListTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalOrderColumnListTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -18,7 +18,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalOrderedByListTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalOrderedByListTest.java similarity index 94% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalOrderedByListTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalOrderedByListTest.java index e688f581cb..fa87f4f0f8 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalOrderedByListTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalOrderedByListTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.ArrayList; import java.util.List; @@ -18,7 +18,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalSetTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalSetTest.java similarity index 95% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalSetTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalSetTest.java index 991ced9cb1..99234c346f 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalSetTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalSetTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.HashSet; import java.util.Objects; @@ -20,7 +20,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Assert; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalSortedSetTest.java b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalSortedSetTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalSortedSetTest.java rename to documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalSortedSetTest.java index cc1f98145a..6406a7c0ce 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/UnidirectionalSortedSetTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/UnidirectionalSortedSetTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections; +package org.hibernate.userguide.collections; import java.util.Objects; import java.util.Set; @@ -24,7 +24,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/type/CommaDelimitedStringsJavaTypeDescriptor.java b/documentation/src/test/java/org/hibernate/userguide/collections/type/CommaDelimitedStringsJavaTypeDescriptor.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/type/CommaDelimitedStringsJavaTypeDescriptor.java rename to documentation/src/test/java/org/hibernate/userguide/collections/type/CommaDelimitedStringsJavaTypeDescriptor.java index 18909e85f9..0c681bb743 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/type/CommaDelimitedStringsJavaTypeDescriptor.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/type/CommaDelimitedStringsJavaTypeDescriptor.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections.type; +package org.hibernate.userguide.collections.type; import java.util.ArrayList; import java.util.Collections; diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/type/CommaDelimitedStringsType.java b/documentation/src/test/java/org/hibernate/userguide/collections/type/CommaDelimitedStringsType.java similarity index 93% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/type/CommaDelimitedStringsType.java rename to documentation/src/test/java/org/hibernate/userguide/collections/type/CommaDelimitedStringsType.java index 6969e95dc1..58fc9064e8 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/collections/type/CommaDelimitedStringsType.java +++ b/documentation/src/test/java/org/hibernate/userguide/collections/type/CommaDelimitedStringsType.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.collections.type; +package org.hibernate.userguide.collections.type; import java.util.List; diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/AlwaysFlushTest.java b/documentation/src/test/java/org/hibernate/userguide/flush/AlwaysFlushTest.java similarity index 97% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/AlwaysFlushTest.java rename to documentation/src/test/java/org/hibernate/userguide/flush/AlwaysFlushTest.java index 2d76710dde..2bff632ac8 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/AlwaysFlushTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/flush/AlwaysFlushTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.flush; +package org.hibernate.userguide.flush; import java.util.ArrayList; import java.util.List; @@ -23,7 +23,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; import static org.junit.Assert.assertTrue; /** diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/AutoFlushTest.java b/documentation/src/test/java/org/hibernate/userguide/flush/AutoFlushTest.java similarity index 98% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/AutoFlushTest.java rename to documentation/src/test/java/org/hibernate/userguide/flush/AutoFlushTest.java index bf1a5d7418..9f0b77d43d 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/AutoFlushTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/flush/AutoFlushTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.flush; +package org.hibernate.userguide.flush; import javax.persistence.Entity; import javax.persistence.EntityManager; @@ -19,7 +19,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; import static org.junit.Assert.assertTrue; /** diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/CommitFlushTest.java b/documentation/src/test/java/org/hibernate/userguide/flush/CommitFlushTest.java similarity index 97% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/CommitFlushTest.java rename to documentation/src/test/java/org/hibernate/userguide/flush/CommitFlushTest.java index 72dbeccf8f..f0da27c168 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/CommitFlushTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/flush/CommitFlushTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.flush; +package org.hibernate.userguide.flush; import java.util.ArrayList; import java.util.List; @@ -24,7 +24,7 @@ import org.jboss.logging.Logger; import static org.junit.Assert.assertTrue; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * CommitFlushTest - Commit Flush Test diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/ManualFlushTest.java b/documentation/src/test/java/org/hibernate/userguide/flush/ManualFlushTest.java similarity index 97% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/ManualFlushTest.java rename to documentation/src/test/java/org/hibernate/userguide/flush/ManualFlushTest.java index 2a294e4eca..7971b7d633 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/flush/ManualFlushTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/flush/ManualFlushTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.flush; +package org.hibernate.userguide.flush; import java.util.ArrayList; import java.util.List; @@ -23,7 +23,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; import static org.junit.Assert.assertTrue; diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/JoinTablePrimaryKeyJoinColumnTest.java b/documentation/src/test/java/org/hibernate/userguide/inheritance/JoinTablePrimaryKeyJoinColumnTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/JoinTablePrimaryKeyJoinColumnTest.java rename to documentation/src/test/java/org/hibernate/userguide/inheritance/JoinTablePrimaryKeyJoinColumnTest.java index c433d93b3f..9d47832c79 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/JoinTablePrimaryKeyJoinColumnTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/inheritance/JoinTablePrimaryKeyJoinColumnTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.inheritance; +package org.hibernate.userguide.inheritance; import java.math.BigDecimal; import java.util.List; @@ -18,7 +18,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/JoinTableTest.java b/documentation/src/test/java/org/hibernate/userguide/inheritance/JoinTableTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/JoinTableTest.java rename to documentation/src/test/java/org/hibernate/userguide/inheritance/JoinTableTest.java index 6e4ec4d17d..0c4a54625a 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/JoinTableTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/inheritance/JoinTableTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.inheritance; +package org.hibernate.userguide.inheritance; import java.math.BigDecimal; import java.util.List; @@ -17,7 +17,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/MappedSuperclassTest.java b/documentation/src/test/java/org/hibernate/userguide/inheritance/MappedSuperclassTest.java similarity index 95% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/MappedSuperclassTest.java rename to documentation/src/test/java/org/hibernate/userguide/inheritance/MappedSuperclassTest.java index 7fc72b3222..8bc69c420d 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/MappedSuperclassTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/inheritance/MappedSuperclassTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.inheritance; +package org.hibernate.userguide.inheritance; import java.math.BigDecimal; import javax.persistence.Entity; @@ -15,7 +15,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/SingleTableDiscriminatorFormulaTest.java b/documentation/src/test/java/org/hibernate/userguide/inheritance/SingleTableDiscriminatorFormulaTest.java similarity index 97% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/SingleTableDiscriminatorFormulaTest.java rename to documentation/src/test/java/org/hibernate/userguide/inheritance/SingleTableDiscriminatorFormulaTest.java index 0eddbc4aff..4c5b5bbc33 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/SingleTableDiscriminatorFormulaTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/inheritance/SingleTableDiscriminatorFormulaTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.inheritance; +package org.hibernate.userguide.inheritance; import java.math.BigDecimal; import java.util.List; @@ -22,7 +22,7 @@ import org.hibernate.testing.RequiresDialect; import org.junit.Assert; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/SingleTableTest.java b/documentation/src/test/java/org/hibernate/userguide/inheritance/SingleTableTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/SingleTableTest.java rename to documentation/src/test/java/org/hibernate/userguide/inheritance/SingleTableTest.java index 2839026581..392475ef4e 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/SingleTableTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/inheritance/SingleTableTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.inheritance; +package org.hibernate.userguide.inheritance; import java.math.BigDecimal; import java.util.List; @@ -17,7 +17,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/TablePerClassTest.java b/documentation/src/test/java/org/hibernate/userguide/inheritance/TablePerClassTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/TablePerClassTest.java rename to documentation/src/test/java/org/hibernate/userguide/inheritance/TablePerClassTest.java index 466b9eeb19..27d25ad504 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/inheritance/TablePerClassTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/inheritance/TablePerClassTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.inheritance; +package org.hibernate.userguide.inheritance; import java.math.BigDecimal; import java.util.List; @@ -17,7 +17,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/locking/ExplicitLockingTest.java b/documentation/src/test/java/org/hibernate/userguide/locking/ExplicitLockingTest.java similarity index 97% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/locking/ExplicitLockingTest.java rename to documentation/src/test/java/org/hibernate/userguide/locking/ExplicitLockingTest.java index 170877e32b..62e7d1a1a6 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/locking/ExplicitLockingTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/locking/ExplicitLockingTest.java @@ -1,4 +1,4 @@ -package org.hibernate.jpa.test.userguide.locking; +package org.hibernate.userguide.locking; import java.util.ArrayList; import java.util.Collections; @@ -23,7 +23,7 @@ import org.junit.Test; import org.jboss.logging.Logger; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; import static org.junit.Assert.assertEquals; /** diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/CalendarWithTemporalTimestampTest.java b/documentation/src/test/java/org/hibernate/userguide/mapping/CalendarWithTemporalTimestampTest.java similarity index 93% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/CalendarWithTemporalTimestampTest.java rename to documentation/src/test/java/org/hibernate/userguide/mapping/CalendarWithTemporalTimestampTest.java index b35878227e..3963cc5f0f 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/CalendarWithTemporalTimestampTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/mapping/CalendarWithTemporalTimestampTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.mapping; +package org.hibernate.userguide.mapping; import java.util.Calendar; import java.util.GregorianCalendar; @@ -19,7 +19,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Assert; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/DateWithTemporalDateTest.java b/documentation/src/test/java/org/hibernate/userguide/mapping/DateWithTemporalDateTest.java similarity index 91% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/DateWithTemporalDateTest.java rename to documentation/src/test/java/org/hibernate/userguide/mapping/DateWithTemporalDateTest.java index ff7c6b5545..aec0b72de3 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/DateWithTemporalDateTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/mapping/DateWithTemporalDateTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.mapping; +package org.hibernate.userguide.mapping; import java.util.Date; import javax.persistence.Entity; @@ -17,7 +17,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/DateWithTemporalTimeTest.java b/documentation/src/test/java/org/hibernate/userguide/mapping/DateWithTemporalTimeTest.java similarity index 91% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/DateWithTemporalTimeTest.java rename to documentation/src/test/java/org/hibernate/userguide/mapping/DateWithTemporalTimeTest.java index 4fee9acced..10a098daa4 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/DateWithTemporalTimeTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/mapping/DateWithTemporalTimeTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.mapping; +package org.hibernate.userguide.mapping; import java.util.Date; import javax.persistence.Entity; @@ -17,7 +17,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/DateWithTemporalTimestampTest.java b/documentation/src/test/java/org/hibernate/userguide/mapping/DateWithTemporalTimestampTest.java similarity index 91% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/DateWithTemporalTimestampTest.java rename to documentation/src/test/java/org/hibernate/userguide/mapping/DateWithTemporalTimestampTest.java index b5fed787a2..f5243b1ae3 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/DateWithTemporalTimestampTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/mapping/DateWithTemporalTimestampTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.mapping; +package org.hibernate.userguide.mapping; import java.util.Date; import javax.persistence.Entity; @@ -17,7 +17,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/LocalDateTimeWithTemporalTimeTest.java b/documentation/src/test/java/org/hibernate/userguide/mapping/LocalDateTimeWithTemporalTimeTest.java similarity index 92% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/LocalDateTimeWithTemporalTimeTest.java rename to documentation/src/test/java/org/hibernate/userguide/mapping/LocalDateTimeWithTemporalTimeTest.java index a6f9acbc2f..211c112872 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/LocalDateTimeWithTemporalTimeTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/mapping/LocalDateTimeWithTemporalTimeTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.mapping; +package org.hibernate.userguide.mapping; import java.time.LocalDateTime; import javax.persistence.Entity; @@ -15,7 +15,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; /** * @author Vlad Mihalcea diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/converter/PeriodStringConverter.java b/documentation/src/test/java/org/hibernate/userguide/mapping/converter/PeriodStringConverter.java similarity index 91% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/converter/PeriodStringConverter.java rename to documentation/src/test/java/org/hibernate/userguide/mapping/converter/PeriodStringConverter.java index 3a8f2b0bff..08186b3885 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/converter/PeriodStringConverter.java +++ b/documentation/src/test/java/org/hibernate/userguide/mapping/converter/PeriodStringConverter.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.mapping.converter; +package org.hibernate.userguide.mapping.converter; import java.time.Period; import javax.persistence.AttributeConverter; diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/converter/PeriodStringTest.java b/documentation/src/test/java/org/hibernate/userguide/mapping/converter/PeriodStringTest.java similarity index 92% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/converter/PeriodStringTest.java rename to documentation/src/test/java/org/hibernate/userguide/mapping/converter/PeriodStringTest.java index fda01deaef..776cc88d99 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/mapping/converter/PeriodStringTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/mapping/converter/PeriodStringTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.mapping.converter; +package org.hibernate.userguide.mapping.converter; import java.time.Period; import javax.persistence.Column; @@ -17,7 +17,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; import static org.junit.Assert.assertEquals; /** diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/naming/AcmeCorpPhysicalNamingStrategy.java b/documentation/src/test/java/org/hibernate/userguide/naming/AcmeCorpPhysicalNamingStrategy.java similarity index 98% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/naming/AcmeCorpPhysicalNamingStrategy.java rename to documentation/src/test/java/org/hibernate/userguide/naming/AcmeCorpPhysicalNamingStrategy.java index 8e9bc3f699..80c67bdd08 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/naming/AcmeCorpPhysicalNamingStrategy.java +++ b/documentation/src/test/java/org/hibernate/userguide/naming/AcmeCorpPhysicalNamingStrategy.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.naming; +package org.hibernate.userguide.naming; import java.util.LinkedList; import java.util.List; diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/naming/AcmeCorpPhysicalNamingStrategyTest.java b/documentation/src/test/java/org/hibernate/userguide/naming/AcmeCorpPhysicalNamingStrategyTest.java similarity index 96% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/naming/AcmeCorpPhysicalNamingStrategyTest.java rename to documentation/src/test/java/org/hibernate/userguide/naming/AcmeCorpPhysicalNamingStrategyTest.java index 5a84753488..1d90a9785d 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/naming/AcmeCorpPhysicalNamingStrategyTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/naming/AcmeCorpPhysicalNamingStrategyTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.userguide.naming; +package org.hibernate.userguide.naming; import org.hibernate.boot.model.naming.Identifier; import org.hibernate.boot.registry.StandardServiceRegistry; diff --git a/documentation/src/test/java/org/hibernate/jpa/test/userguide/ql/BulkTest.java b/documentation/src/test/java/org/hibernate/userguide/ql/BulkTest.java similarity index 95% rename from documentation/src/test/java/org/hibernate/jpa/test/userguide/ql/BulkTest.java rename to documentation/src/test/java/org/hibernate/userguide/ql/BulkTest.java index 3b0d39b32b..1a7b3e7b8a 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/userguide/ql/BulkTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/ql/BulkTest.java @@ -1,4 +1,4 @@ -package org.hibernate.jpa.test.userguide.ql; +package org.hibernate.userguide.ql; import java.util.Calendar; import java.util.GregorianCalendar; @@ -10,7 +10,7 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.junit.Test; -import static org.hibernate.jpa.test.util.TransactionUtil.doInJPA; +import static org.hibernate.userguide.util.TransactionUtil.doInJPA; import static org.junit.Assert.assertEquals; /** diff --git a/documentation/src/test/java/org/hibernate/jpa/test/util/TransactionUtil.java b/documentation/src/test/java/org/hibernate/userguide/util/TransactionUtil.java similarity index 99% rename from documentation/src/test/java/org/hibernate/jpa/test/util/TransactionUtil.java rename to documentation/src/test/java/org/hibernate/userguide/util/TransactionUtil.java index 55edbefe2e..da1fc9e7a5 100644 --- a/documentation/src/test/java/org/hibernate/jpa/test/util/TransactionUtil.java +++ b/documentation/src/test/java/org/hibernate/userguide/util/TransactionUtil.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Article.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Article.java similarity index 96% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Article.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Article.java index fc9627de94..f75a1f7bb0 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Article.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Article.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import java.io.Serializable; import javax.persistence.Entity; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Author.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Author.java similarity index 94% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Author.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Author.java index 64289ffa12..dfcf408244 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Author.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Author.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Book.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Book.java similarity index 95% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Book.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Book.java index 2fbafef694..00a239b5b4 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Book.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Book.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/CopyrightableContent.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/CopyrightableContent.java similarity index 95% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/CopyrightableContent.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/CopyrightableContent.java index e579f13fe9..4ed4df723d 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/CopyrightableContent.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/CopyrightableContent.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import javax.persistence.FetchType; import javax.persistence.ManyToOne; import javax.persistence.MappedSuperclass; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/GetIdentifierTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/GetIdentifierTest.java similarity index 98% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/GetIdentifierTest.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/GetIdentifierTest.java index 0852b7becd..e298fd3784 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/GetIdentifierTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/GetIdentifierTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import javax.persistence.EntityManager; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/IsLoadedTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/IsLoadedTest.java similarity index 97% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/IsLoadedTest.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/IsLoadedTest.java index 90fb4346b1..ecd8d7591c 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/IsLoadedTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/IsLoadedTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import javax.persistence.EntityManager; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/PersistenceUtilHelperTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/PersistenceUtilHelperTest.java similarity index 98% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/PersistenceUtilHelperTest.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/PersistenceUtilHelperTest.java index 086e78197e..eb55c68e58 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/PersistenceUtilHelperTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/PersistenceUtilHelperTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import javax.persistence.spi.LoadState; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/PessimisticNumberParserUnitTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/PessimisticNumberParserUnitTest.java similarity index 98% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/PessimisticNumberParserUnitTest.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/PessimisticNumberParserUnitTest.java index 292178b69e..9b191681dc 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/PessimisticNumberParserUnitTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/PessimisticNumberParserUnitTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/ProviderUtilTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/ProviderUtilTest.java similarity index 98% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/ProviderUtilTest.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/ProviderUtilTest.java index 61256977cc..66eb818afe 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/ProviderUtilTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/ProviderUtilTest.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import javax.persistence.Persistence; import javax.persistence.spi.LoadState; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Sickness.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Sickness.java similarity index 98% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Sickness.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Sickness.java index 10022deba5..27a82885e8 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Sickness.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Sickness.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import java.io.Serializable; import java.util.Date; import javax.persistence.Entity; diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Umbrella.java b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Umbrella.java similarity index 97% rename from hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Umbrella.java rename to hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Umbrella.java index a1dae8818f..2bc1ca1d29 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/util/Umbrella.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/userguide/util/Umbrella.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or . */ -package org.hibernate.jpa.test.util; +package org.hibernate.userguide.util; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.EmbeddedId;