HHH-7451 - Integrate Draft 7 of the JPA 2.1 spec : more ejb->jpa rename
This commit is contained in:
parent
06d44951c6
commit
30d8fdaa8b
|
@ -707,7 +707,7 @@ public abstract class AbstractEntityManagerImpl implements HibernateEntityManage
|
||||||
*/
|
*/
|
||||||
org.hibernate.Query namedQuery = getSession().getNamedQuery( name );
|
org.hibernate.Query namedQuery = getSession().getNamedQuery( name );
|
||||||
//TODO clean this up to avoid downcasting
|
//TODO clean this up to avoid downcasting
|
||||||
final SessionFactoryImplementor factoryImplementor = ( SessionFactoryImplementor ) entityManagerFactory.getSessionFactory();
|
final SessionFactoryImplementor factoryImplementor = entityManagerFactory.getSessionFactory();
|
||||||
final NamedSQLQueryDefinition queryDefinition = factoryImplementor.getNamedSQLQuery( name );
|
final NamedSQLQueryDefinition queryDefinition = factoryImplementor.getNamedSQLQuery( name );
|
||||||
try {
|
try {
|
||||||
if ( queryDefinition != null ) {
|
if ( queryDefinition != null ) {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<persistence-unit name="cfgxmlpar" transaction-type="RESOURCE_LOCAL">
|
<persistence-unit name="cfgxmlpar" transaction-type="RESOURCE_LOCAL">
|
||||||
<provider>org.hibernate.ejb.HibernatePersistence</provider>
|
<provider>org.hibernate.ejb.HibernatePersistence</provider>
|
||||||
<properties>
|
<properties>
|
||||||
<property name="hibernate.ejb.cfgfile" value="/org/hibernate/ejb/test/pack/cfgxmlpar/hibernate.cfg.xml"/>
|
<property name="hibernate.ejb.cfgfile" value="/org/hibernate/jpa/test/pack/cfgxmlpar/hibernate.cfg.xml"/>
|
||||||
</properties>
|
</properties>
|
||||||
</persistence-unit>
|
</persistence-unit>
|
||||||
</persistence>
|
</persistence>
|
||||||
|
|
|
@ -17,12 +17,12 @@
|
||||||
<property name="hibernate.hbm2ddl.auto">create-drop</property>
|
<property name="hibernate.hbm2ddl.auto">create-drop</property>
|
||||||
<property name="hibernate.generate_statistics">true</property>
|
<property name="hibernate.generate_statistics">true</property>
|
||||||
<property name="hibernate.cache.region.factory_class">org.hibernate.testing.cache.CachingRegionFactory</property>
|
<property name="hibernate.cache.region.factory_class">org.hibernate.testing.cache.CachingRegionFactory</property>
|
||||||
<mapping class="org.hibernate.ejb.test.Item"/>
|
<mapping class="org.hibernate.jpa.test.Item"/>
|
||||||
<mapping class="org.hibernate.ejb.test.Cat"/>
|
<mapping class="org.hibernate.jpa.test.Cat"/>
|
||||||
<mapping class="org.hibernate.ejb.test.Kitten"/>
|
<mapping class="org.hibernate.jpa.test.Kitten"/>
|
||||||
<mapping class="org.hibernate.ejb.test.Distributor"/>
|
<mapping class="org.hibernate.jpa.test.Distributor"/>
|
||||||
<class-cache class="org.hibernate.ejb.test.Item" usage="read-write"/>
|
<class-cache class="org.hibernate.jpa.test.Item" usage="read-write"/>
|
||||||
<collection-cache collection="org.hibernate.ejb.test.Item.distributors" usage="read-write" region="RegionName"/>
|
<collection-cache collection="org.hibernate.jpa.test.Item.distributors" usage="read-write" region="RegionName"/>
|
||||||
<event type="pre-insert"/>
|
<event type="pre-insert"/>
|
||||||
</session-factory>
|
</session-factory>
|
||||||
</hibernate-configuration>
|
</hibernate-configuration>
|
|
@ -8,13 +8,13 @@
|
||||||
<persistence-unit-metadata>
|
<persistence-unit-metadata>
|
||||||
<persistence-unit-defaults>
|
<persistence-unit-defaults>
|
||||||
<entity-listeners>
|
<entity-listeners>
|
||||||
<entity-listener class="org.hibernate.ejb.test.pack.defaultpar.IncrementListener">
|
<entity-listener class="org.hibernate.jpa.test.pack.defaultpar.IncrementListener">
|
||||||
<pre-persist method-name="increment"/>
|
<pre-persist method-name="increment"/>
|
||||||
</entity-listener>
|
</entity-listener>
|
||||||
</entity-listeners>
|
</entity-listeners>
|
||||||
</persistence-unit-defaults>
|
</persistence-unit-defaults>
|
||||||
</persistence-unit-metadata>
|
</persistence-unit-metadata>
|
||||||
<package>org.hibernate.ejb.test.pack.defaultpar</package>
|
<package>org.hibernate.jpa.test.pack.defaultpar</package>
|
||||||
<entity class="Lighter" access="FIELD" metadata-complete="true">
|
<entity class="Lighter" access="FIELD" metadata-complete="true">
|
||||||
<attributes>
|
<attributes>
|
||||||
<id name="name">
|
<id name="name">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
<persistence-unit name="defaultpar">
|
<persistence-unit name="defaultpar">
|
||||||
<class>org.hibernate.ejb.test.pack.defaultpar.Lighter</class>
|
<class>org.hibernate.jpa.test.pack.defaultpar.Lighter</class>
|
||||||
<validation-mode>CALLBACK</validation-mode>
|
<validation-mode>CALLBACK</validation-mode>
|
||||||
<properties>
|
<properties>
|
||||||
<property name="hibernate.dialect" value="@db.dialect@"/>
|
<property name="hibernate.dialect" value="@db.dialect@"/>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||||
|
|
||||||
<hibernate-mapping
|
<hibernate-mapping
|
||||||
package="org.hibernate.ejb.test.pack.defaultpar"
|
package="org.hibernate.jpa.test.pack.defaultpar"
|
||||||
>
|
>
|
||||||
|
|
||||||
<class name="Mouse">
|
<class name="Mouse">
|
|
@ -9,14 +9,14 @@
|
||||||
<persistence-unit-metadata>
|
<persistence-unit-metadata>
|
||||||
<persistence-unit-defaults>
|
<persistence-unit-defaults>
|
||||||
<entity-listeners>
|
<entity-listeners>
|
||||||
<entity-listener class="org.hibernate.ejb.test.pack.defaultpar_1_0.IncrementListener1">
|
<entity-listener class="org.hibernate.jpa.test.pack.defaultpar_1_0.IncrementListener1">
|
||||||
<pre-persist method-name="increment"/>
|
<pre-persist method-name="increment"/>
|
||||||
</entity-listener>
|
</entity-listener>
|
||||||
</entity-listeners>
|
</entity-listeners>
|
||||||
</persistence-unit-defaults>
|
</persistence-unit-defaults>
|
||||||
</persistence-unit-metadata>
|
</persistence-unit-metadata>
|
||||||
<package>org.hibernate.ejb.test.pack.defaultpar_1_0</package>
|
<package>org.hibernate.jpa.test.pack.defaultpar_1_0</package>
|
||||||
<entity class="org.hibernate.ejb.test.pack.defaultpar_1_0.Lighter1" access="FIELD" metadata-complete="true">
|
<entity class="org.hibernate.jpa.test.pack.defaultpar_1_0.Lighter1" access="FIELD" metadata-complete="true">
|
||||||
<attributes>
|
<attributes>
|
||||||
<id name="name">
|
<id name="name">
|
||||||
<column name="fld_id"/>
|
<column name="fld_id"/>
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
<basic name="power"></basic>
|
<basic name="power"></basic>
|
||||||
</attributes>
|
</attributes>
|
||||||
</entity>
|
</entity>
|
||||||
<entity class="org.hibernate.ejb.test.pack.defaultpar_1_0.ApplicationServer1">
|
<entity class="org.hibernate.jpa.test.pack.defaultpar_1_0.ApplicationServer1">
|
||||||
<entity-listeners>
|
<entity-listeners>
|
||||||
<entity-listener class="OtherIncrementListener1">
|
<entity-listener class="OtherIncrementListener1">
|
||||||
<pre-persist method-name="increment"/>
|
<pre-persist method-name="increment"/>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
|
||||||
version="1.0">
|
version="1.0">
|
||||||
<persistence-unit name="defaultpar_1_0">
|
<persistence-unit name="defaultpar_1_0">
|
||||||
<class>org.hibernate.ejb.test.pack.defaultpar.Lighter</class>
|
<class>org.hibernate.jpa.test.pack.defaultpar.Lighter</class>
|
||||||
<properties>
|
<properties>
|
||||||
<property name="hibernate.dialect" value="@db.dialect@"/>
|
<property name="hibernate.dialect" value="@db.dialect@"/>
|
||||||
<property name="hibernate.connection.driver_class" value="@jdbc.driver@"/>
|
<property name="hibernate.connection.driver_class" value="@jdbc.driver@"/>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||||
|
|
||||||
<hibernate-mapping
|
<hibernate-mapping
|
||||||
package="org.hibernate.ejb.test.pack.defaultpar_1_0"
|
package="org.hibernate.jpa.test.pack.defaultpar_1_0"
|
||||||
>
|
>
|
||||||
|
|
||||||
<class name="Mouse1">
|
<class name="Mouse1">
|
|
@ -5,7 +5,7 @@
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"
|
||||||
version="2.0"
|
version="2.0"
|
||||||
>
|
>
|
||||||
<package>org.hibernate.ejb.test.xml</package>
|
<package>org.hibernate.jpa.test.xml</package>
|
||||||
<entity class="Light" access="FIELD" metadata-complete="true">
|
<entity class="Light" access="FIELD" metadata-complete="true">
|
||||||
<attributes>
|
<attributes>
|
||||||
<id name="name">
|
<id name="name">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||||
|
|
||||||
<hibernate-mapping
|
<hibernate-mapping
|
||||||
package="org.hibernate.ejb.test.pack.excludehbmpar"
|
package="org.hibernate.jpa.test.pack.excludehbmpar"
|
||||||
>
|
>
|
||||||
|
|
||||||
<class name="Mouse">
|
<class name="Mouse">
|
|
@ -5,7 +5,7 @@
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"
|
||||||
version="2.0"
|
version="2.0"
|
||||||
>
|
>
|
||||||
<package>org.hibernate.ejb.test.pack.various</package>
|
<package>org.hibernate.jpa.test.pack.various</package>
|
||||||
<entity class="Seat" access="PROPERTY" metadata-complete="true">
|
<entity class="Seat" access="PROPERTY" metadata-complete="true">
|
||||||
<attributes>
|
<attributes>
|
||||||
<id name="number">
|
<id name="number">
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
version="2.0">
|
version="2.0">
|
||||||
<persistence-unit name="manager1" transaction-type="RESOURCE_LOCAL">
|
<persistence-unit name="manager1" transaction-type="RESOURCE_LOCAL">
|
||||||
<jar-file>@buildDirName@/packages/externaljar.jar</jar-file>
|
<jar-file>@buildDirName@/packages/externaljar.jar</jar-file>
|
||||||
<class>org.hibernate.ejb.test.Cat</class>
|
<class>org.hibernate.jpa.test.Cat</class>
|
||||||
<class>org.hibernate.ejb.test.Kitten</class>
|
<class>org.hibernate.jpa.test.Kitten</class>
|
||||||
<class>org.hibernate.ejb.test.Distributor</class>
|
<class>org.hibernate.jpa.test.Distributor</class>
|
||||||
<class>org.hibernate.ejb.test.Item</class>
|
<class>org.hibernate.jpa.test.Item</class>
|
||||||
<exclude-unlisted-classes>true</exclude-unlisted-classes>
|
<exclude-unlisted-classes>true</exclude-unlisted-classes>
|
||||||
<properties>
|
<properties>
|
||||||
<!-- custom scanner test -->
|
<!-- custom scanner test -->
|
||||||
<property name="hibernate.ejb.resource_scanner" value="org.hibernate.ejb.test.packaging.CustomScanner"/>
|
<property name="hibernate.ejb.resource_scanner" value="org.hibernate.jpa.test.packaging.CustomScanner"/>
|
||||||
|
|
||||||
<property name="hibernate.dialect" value="@db.dialect@"/>
|
<property name="hibernate.dialect" value="@db.dialect@"/>
|
||||||
<property name="hibernate.connection.driver_class" value="@jdbc.driver@"/>
|
<property name="hibernate.connection.driver_class" value="@jdbc.driver@"/>
|
||||||
|
@ -27,21 +27,21 @@
|
||||||
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
|
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
|
||||||
<property name="hibernate.generate_statistics" value="true"/>
|
<property name="hibernate.generate_statistics" value="true"/>
|
||||||
<property name="hibernate.cache.region.factory_class" value="org.hibernate.testing.cache.CachingRegionFactory" />
|
<property name="hibernate.cache.region.factory_class" value="org.hibernate.testing.cache.CachingRegionFactory" />
|
||||||
<property name="hibernate.ejb.naming_strategy" value="org.hibernate.ejb.test.MyNamingStrategy"/>
|
<property name="hibernate.ejb.naming_strategy" value="org.hibernate.jpa.test.MyNamingStrategy"/>
|
||||||
<!-- test naming strategy and fall back to element content -->
|
<!-- test naming strategy and fall back to element content -->
|
||||||
<!-- property name="hibernate.ejb.naming_strategy">org.hibernate.ejb.test.MyNamingStrategy</property -->
|
<!-- property name="hibernate.ejb.naming_strategy">MyNamingStrategy</property -->
|
||||||
|
|
||||||
<!-- cache configuration -->
|
<!-- cache configuration -->
|
||||||
<property name="hibernate.ejb.classcache.org.hibernate.ejb.test.Item" value="read-write"/>
|
<property name="hibernate.ejb.classcache.org.hibernate.jpa.test.Item" value="read-write"/>
|
||||||
<property name="hibernate.ejb.collectioncache.org.hibernate.ejb.test.Item.distributors"
|
<property name="hibernate.ejb.collectioncache.org.hibernate.jpa.test.Item.distributors"
|
||||||
value="read-write, RegionName"/>
|
value="read-write, RegionName"/>
|
||||||
|
|
||||||
<!-- event overriding -->
|
<!-- event overriding -->
|
||||||
<property name="hibernate.ejb.event.pre-insert" value="org.hibernate.ejb.test.NoOpListener"/>
|
<property name="hibernate.ejb.event.pre-insert" value="org.hibernate.jpa.test.NoOpListener"/>
|
||||||
<!-- remove JACC and validator -->
|
<!-- remove JACC and validator -->
|
||||||
|
|
||||||
<!-- alternatively to <class> and <property> declarations, you can use a regular hibernate.cfg.xml file -->
|
<!-- alternatively to <class> and <property> declarations, you can use a regular hibernate.cfg.xml file -->
|
||||||
<!-- property name="hibernate.ejb.cfgfile" value="/org/hibernate/ejb/test/hibernate.cfg.xml"/ -->
|
<!-- property name="hibernate.ejb.cfgfile" value="/resource-path/to/hibernate.cfg.xml"/ -->
|
||||||
</properties>
|
</properties>
|
||||||
</persistence-unit>
|
</persistence-unit>
|
||||||
</persistence>
|
</persistence>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||||
|
|
||||||
<hibernate-mapping package="org.hibernate.ejb.test.pack.explodedpar">
|
<hibernate-mapping package="org.hibernate.jpa.test.pack.explodedpar">
|
||||||
<class name="Elephant">
|
<class name="Elephant">
|
||||||
<id name="id">
|
<id name="id">
|
||||||
<generator class="native"/>
|
<generator class="native"/>
|
|
@ -5,7 +5,7 @@
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"
|
||||||
version="2.0"
|
version="2.0"
|
||||||
>
|
>
|
||||||
<package>org.hibernate.ejb.test.pack.various</package>
|
<package>org.hibernate.jpa.test.pack.various</package>
|
||||||
<entity class="Airplane" metadata-complete="true" access="PROPERTY">
|
<entity class="Airplane" metadata-complete="true" access="PROPERTY">
|
||||||
<attributes>
|
<attributes>
|
||||||
<id name="serialNumber"/>
|
<id name="serialNumber"/>
|
||||||
|
|
|
@ -8,14 +8,14 @@
|
||||||
<persistence-unit-metadata>
|
<persistence-unit-metadata>
|
||||||
<persistence-unit-defaults>
|
<persistence-unit-defaults>
|
||||||
<entity-listeners>
|
<entity-listeners>
|
||||||
<entity-listener class="org.hibernate.ejb.test.pack.defaultpar.IncrementListener">
|
<entity-listener class="org.hibernate.jpa.test.pack.defaultpar.IncrementListener">
|
||||||
<pre-persist method-name="increment"/>
|
<pre-persist method-name="increment"/>
|
||||||
</entity-listener>
|
</entity-listener>
|
||||||
</entity-listeners>
|
</entity-listeners>
|
||||||
|
|
||||||
</persistence-unit-defaults>
|
</persistence-unit-defaults>
|
||||||
</persistence-unit-metadata>
|
</persistence-unit-metadata>
|
||||||
<package>org.hibernate.ejb.test.pack.defaultpar</package>
|
<package>org.hibernate.jpa.test.pack.defaultpar</package>
|
||||||
<entity class="Lighter" access="FIELD" metadata-complete="true">
|
<entity class="Lighter" access="FIELD" metadata-complete="true">
|
||||||
<attributes>
|
<attributes>
|
||||||
<id name="name">
|
<id name="name">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
<persistence-unit name="defaultpar">
|
<persistence-unit name="defaultpar">
|
||||||
<class>org.hibernate.ejb.test.pack.defaultpar.Lighter</class>
|
<class>org.hibernate.jpa.test.pack.defaultpar.Lighter</class>
|
||||||
<properties>
|
<properties>
|
||||||
<property name="hibernate.dialect" value="@db.dialect@"/>
|
<property name="hibernate.dialect" value="@db.dialect@"/>
|
||||||
<property name="hibernate.connection.driver_class" value="@jdbc.driver@"/>
|
<property name="hibernate.connection.driver_class" value="@jdbc.driver@"/>
|
||||||
|
|
|
@ -3,12 +3,9 @@
|
||||||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||||
|
|
||||||
<hibernate-mapping
|
<hibernate-mapping package="org.hibernate.jpa.test.pack.war">
|
||||||
package="org.hibernate.ejb.test.pack.war"
|
|
||||||
>
|
|
||||||
|
|
||||||
<class name="Mouse">
|
<class name="Mouse">
|
||||||
|
|
||||||
<id name="id">
|
<id name="id">
|
||||||
<generator class="native"/>
|
<generator class="native"/>
|
||||||
</id>
|
</id>
|
|
@ -1,4 +0,0 @@
|
||||||
@NamedQuery(name = "allMouse",
|
|
||||||
query = "select m from ApplicationServer m") package org.hibernate.ejb.test.pack.defaultpar;
|
|
||||||
import org.hibernate.annotations.NamedQuery;
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
@NamedQuery(name = "allMouse_1_0",
|
|
||||||
query = "select m from ApplicationServer1 m")
|
|
||||||
package org.hibernate.ejb.test.pack.defaultpar_1_0;
|
|
||||||
import org.hibernate.annotations.NamedQuery;
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
@NamedQuery(name = "allCarpet", query = "select c from Carpet c") package org.hibernate.ejb.test.pack.explodedpar;
|
|
||||||
import org.hibernate.annotations.NamedQuery;
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
@NamedQuery(name = "allMouse",
|
|
||||||
query = "select m from ApplicationServer m")
|
|
||||||
package org.hibernate.ejb.test.pack.war;
|
|
||||||
import org.hibernate.annotations.NamedQuery;
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
import javax.persistence.EntityManagerFactory;
|
import javax.persistence.EntityManagerFactory;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.persistence.Embeddable;
|
import javax.persistence.Embeddable;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
import javax.persistence.criteria.CriteriaBuilder;
|
import javax.persistence.criteria.CriteriaBuilder;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
|
@ -22,7 +22,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.persistence.EmbeddedId;
|
import javax.persistence.EmbeddedId;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
@ -24,7 +24,7 @@ import org.hibernate.annotations.QueryHints;
|
||||||
*/
|
*/
|
||||||
@Entity(name = "Item")
|
@Entity(name = "Item")
|
||||||
@SqlResultSetMapping(name = "getItem", entities =
|
@SqlResultSetMapping(name = "getItem", entities =
|
||||||
@EntityResult(entityClass = org.hibernate.ejb.test.Item.class, fields = {
|
@EntityResult(entityClass = Item.class, fields = {
|
||||||
@FieldResult(name = "name", column = "itemname"),
|
@FieldResult(name = "name", column = "itemname"),
|
||||||
@FieldResult(name = "descr", column = "itemdescription")
|
@FieldResult(name = "descr", column = "itemdescription")
|
||||||
})
|
})
|
|
@ -1,5 +1,5 @@
|
||||||
// $Id$
|
// $Id$
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import javax.persistence.PrePersist;
|
import javax.persistence.PrePersist;
|
||||||
import javax.persistence.PreUpdate;
|
import javax.persistence.PreUpdate;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
import org.hibernate.cfg.EJB3NamingStrategy;
|
import org.hibernate.cfg.EJB3NamingStrategy;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
import org.hibernate.event.spi.PreInsertEvent;
|
import org.hibernate.event.spi.PreInsertEvent;
|
||||||
import org.hibernate.event.spi.PreInsertEventListener;
|
import org.hibernate.event.spi.PreInsertEventListener;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempts to serialize this class should cause a NotSerializableException error to be thrown.
|
* Attempts to serialize this class should cause a NotSerializableException error to be thrown.
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
import javax.persistence.SharedCacheMode;
|
import javax.persistence.SharedCacheMode;
|
||||||
import javax.persistence.ValidationMode;
|
import javax.persistence.ValidationMode;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
|
|
||||||
import javax.persistence.EntityManagerFactory;
|
import javax.persistence.EntityManagerFactory;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test;
|
package org.hibernate.jpa.test;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
|
@ -1,10 +1,10 @@
|
||||||
package org.hibernate.ejb.test.association;
|
package org.hibernate.jpa.test.association;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Emmanuel Bernard
|
* @author Emmanuel Bernard
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.association;
|
package org.hibernate.jpa.test.association;
|
||||||
import javax.persistence.CascadeType;
|
import javax.persistence.CascadeType;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.association;
|
package org.hibernate.jpa.test.association;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
import javax.persistence.OneToOne;
|
import javax.persistence.OneToOne;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.association;
|
package org.hibernate.jpa.test.association;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.association;
|
package org.hibernate.jpa.test.association;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.beanvalidation;
|
package org.hibernate.jpa.test.beanvalidation;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
|
@ -30,7 +30,7 @@ import javax.validation.ConstraintViolationException;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.hibernate.ejb.test.beanvalidation;
|
package org.hibernate.jpa.test.beanvalidation;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
|
@ -21,13 +21,13 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.boot;
|
package org.hibernate.jpa.test.boot;
|
||||||
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.hibernate.ejb.test.jee.OrmVersionTest;
|
import org.hibernate.jpa.test.jee.OrmVersionTest;
|
||||||
import org.hibernate.jpa.HibernatePersistenceProvider;
|
import org.hibernate.jpa.HibernatePersistenceProvider;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cacheable.annotation;
|
package org.hibernate.jpa.test.cacheable.annotation;
|
||||||
|
|
||||||
import javax.persistence.SharedCacheMode;
|
import javax.persistence.SharedCacheMode;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
@ -32,7 +32,7 @@ import org.hibernate.cache.internal.NoCachingRegionFactory;
|
||||||
import org.hibernate.cache.spi.access.AccessType;
|
import org.hibernate.cache.spi.access.AccessType;
|
||||||
import org.hibernate.cfg.Configuration;
|
import org.hibernate.cfg.Configuration;
|
||||||
import org.hibernate.cfg.Environment;
|
import org.hibernate.cfg.Environment;
|
||||||
import org.hibernate.ejb.test.PersistenceUnitInfoAdapter;
|
import org.hibernate.jpa.test.PersistenceUnitInfoAdapter;
|
||||||
import org.hibernate.jpa.AvailableSettings;
|
import org.hibernate.jpa.AvailableSettings;
|
||||||
import org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl;
|
import org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl;
|
||||||
import org.hibernate.jpa.boot.spi.Bootstrap;
|
import org.hibernate.jpa.boot.spi.Bootstrap;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cacheable.annotation;
|
package org.hibernate.jpa.test.cacheable.annotation;
|
||||||
import javax.persistence.Cacheable;
|
import javax.persistence.Cacheable;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cacheable.annotation;
|
package org.hibernate.jpa.test.cacheable.annotation;
|
||||||
import javax.persistence.Cacheable;
|
import javax.persistence.Cacheable;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cacheable.annotation;
|
package org.hibernate.jpa.test.cacheable.annotation;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cacheable.cachemodes;
|
package org.hibernate.jpa.test.cacheable.cachemodes;
|
||||||
|
|
||||||
import javax.persistence.CacheRetrieveMode;
|
import javax.persistence.CacheRetrieveMode;
|
||||||
import javax.persistence.CacheStoreMode;
|
import javax.persistence.CacheStoreMode;
|
||||||
|
@ -35,7 +35,7 @@ import org.hibernate.Session;
|
||||||
import org.hibernate.ejb.AvailableSettings;
|
import org.hibernate.ejb.AvailableSettings;
|
||||||
import org.hibernate.ejb.HibernateEntityManager;
|
import org.hibernate.ejb.HibernateEntityManager;
|
||||||
import org.hibernate.ejb.HibernateQuery;
|
import org.hibernate.ejb.HibernateQuery;
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
import org.hibernate.internal.AbstractQueryImpl;
|
import org.hibernate.internal.AbstractQueryImpl;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cacheable.cachemodes;
|
package org.hibernate.jpa.test.cacheable.cachemodes;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -29,7 +29,7 @@ import javax.persistence.EntityManager;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
@ -7,9 +7,10 @@ import javax.persistence.EntityManager;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
import org.hibernate.ejb.test.Cat;
|
import org.hibernate.jpa.test.Cat;
|
||||||
import org.hibernate.ejb.test.Kitten;
|
import org.hibernate.jpa.test.Kitten;
|
||||||
|
|
||||||
import org.hibernate.testing.FailureExpected;
|
import org.hibernate.testing.FailureExpected;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.EntityListeners;
|
import javax.persistence.EntityListeners;
|
||||||
import javax.persistence.MappedSuperclass;
|
import javax.persistence.MappedSuperclass;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.persistence.PrePersist;
|
import javax.persistence.PrePersist;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Inheritance;
|
import javax.persistence.Inheritance;
|
||||||
import javax.persistence.InheritanceType;
|
import javax.persistence.InheritanceType;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Inheritance;
|
import javax.persistence.Inheritance;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.PrePersist;
|
import javax.persistence.PrePersist;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.PreUpdate;
|
import javax.persistence.PreUpdate;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.PreUpdate;
|
import javax.persistence.PreUpdate;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
import javax.persistence.PrePersist;
|
import javax.persistence.PrePersist;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import javax.persistence.Basic;
|
import javax.persistence.Basic;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.EntityListeners;
|
import javax.persistence.EntityListeners;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.CascadeType;
|
import javax.persistence.CascadeType;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.EntityListeners;
|
import javax.persistence.EntityListeners;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.callbacks;
|
package org.hibernate.jpa.test.callbacks;
|
||||||
import javax.persistence.EntityListeners;
|
import javax.persistence.EntityListeners;
|
||||||
import javax.persistence.ExcludeSuperclassListeners;
|
import javax.persistence.ExcludeSuperclassListeners;
|
||||||
import javax.persistence.MappedSuperclass;
|
import javax.persistence.MappedSuperclass;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
|
@ -21,14 +21,14 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
import javax.persistence.EntityTransaction;
|
import javax.persistence.EntityTransaction;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Max Rydahl Andersen
|
* @author Max Rydahl Andersen
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import javax.persistence.CascadeType;
|
import javax.persistence.CascadeType;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
|
@ -36,7 +36,7 @@ import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.Hibernate;
|
import org.hibernate.Hibernate;
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Emmanuel Bernard
|
* @author Emmanuel Bernard
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
@ -34,7 +34,7 @@ import javax.persistence.OneToMany;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
|
|
||||||
import static javax.persistence.CascadeType.DETACH;
|
import static javax.persistence.CascadeType.DETACH;
|
||||||
import static javax.persistence.CascadeType.REMOVE;
|
import static javax.persistence.CascadeType.REMOVE;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
@ -33,7 +33,7 @@ import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.Hibernate;
|
import org.hibernate.Hibernate;
|
||||||
import org.hibernate.ejb.HibernateEntityManager;
|
import org.hibernate.ejb.HibernateEntityManager;
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
|
|
||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
|
@ -21,13 +21,13 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
|
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
import javax.persistence.CascadeType;
|
import javax.persistence.CascadeType;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.persistence.CascadeType;
|
import javax.persistence.CascadeType;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
import javax.persistence.CascadeType;
|
import javax.persistence.CascadeType;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
|
|
||||||
import javax.persistence.CascadeType;
|
import javax.persistence.CascadeType;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
|
@ -1,5 +1,5 @@
|
||||||
//$Id$
|
//$Id$
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.hibernate.ejb.test.cascade;
|
package org.hibernate.jpa.test.cascade;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade.multicircle;
|
package org.hibernate.jpa.test.cascade.multicircle;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade.multicircle;
|
package org.hibernate.jpa.test.cascade.multicircle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No Documentation
|
* No Documentation
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade.multicircle;
|
package org.hibernate.jpa.test.cascade.multicircle;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade.multicircle;
|
package org.hibernate.jpa.test.cascade.multicircle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No Documentation
|
* No Documentation
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade.multicircle;
|
package org.hibernate.jpa.test.cascade.multicircle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No Documentation
|
* No Documentation
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade.multicircle;
|
package org.hibernate.jpa.test.cascade.multicircle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No Documentation
|
* No Documentation
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade.multicircle;
|
package org.hibernate.jpa.test.cascade.multicircle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No Documentation
|
* No Documentation
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade.multicircle;
|
package org.hibernate.jpa.test.cascade.multicircle;
|
||||||
|
|
||||||
import javax.persistence.EntityManager;
|
import javax.persistence.EntityManager;
|
||||||
import javax.persistence.RollbackException;
|
import javax.persistence.RollbackException;
|
||||||
|
@ -32,7 +32,7 @@ import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.TransientPropertyValueException;
|
import org.hibernate.TransientPropertyValueException;
|
||||||
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
|
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||||
import org.hibernate.testing.FailureExpected;
|
import org.hibernate.testing.FailureExpected;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade.multilevel;
|
package org.hibernate.jpa.test.cascade.multilevel;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
|
@ -21,7 +21,7 @@
|
||||||
* 51 Franklin Street, Fifth Floor
|
* 51 Franklin Street, Fifth Floor
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.ejb.test.cascade.multilevel;
|
package org.hibernate.jpa.test.cascade.multilevel;
|
||||||
|
|
||||||
import javax.persistence.CascadeType;
|
import javax.persistence.CascadeType;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue