Move user guide tests to org.hibernate.userguide and sql snippets to extras

This commit is contained in:
vladmihalcea 2016-01-25 10:40:11 +02:00
parent d97280dce3
commit a8ee683280
135 changed files with 199 additions and 194 deletions

View File

@ -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`).

View File

@ -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[]
----
====

View File

@ -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[]
----
====

View File

@ -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[]
----
====

View File

@ -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.

View File

@ -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[]
----
====

View File

@ -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[]
----
====

View File

@ -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]
----
====

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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;
/**

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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;
/**

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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;

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

View File

@ -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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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

Some files were not shown because too many files have changed in this diff Show More