Move tests from packages actionqueue, annotations, batch, boot, bytecode, id, resource, schemafilter, schematools, schemaupdate, schemavalidation, serialization, service, tool, unidir, util

This commit is contained in:
Christian Beikov 2021-05-05 12:11:45 +02:00
parent 71f666f0b6
commit 1a24c93155
706 changed files with 1150 additions and 1165 deletions

View File

@ -37,7 +37,7 @@ import org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase;
import org.hibernate.testing.AfterClassOnce;
import org.hibernate.testing.junit4.BaseUnitTestCase;
import org.hibernate.test.util.DdlTransactionIsolatorTestingImpl;
import org.hibernate.orm.test.util.DdlTransactionIsolatorTestingImpl;
import org.junit.Test;
/**

View File

@ -45,7 +45,7 @@ import org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase;
import org.hibernate.testing.AfterClassOnce;
import org.hibernate.testing.RequiresDialect;
import org.hibernate.testing.junit4.BaseUnitTestCase;
import org.hibernate.test.util.DdlTransactionIsolatorTestingImpl;
import org.hibernate.orm.test.util.DdlTransactionIsolatorTestingImpl;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

View File

@ -369,6 +369,11 @@ public class DerbyDialect extends Dialect {
: SequenceInformationExtractorDerbyDatabaseImpl.INSTANCE;
}
@Override
public String[] getDropSchemaCommand(String schemaName) {
return new String[] {"drop schema " + schemaName + " restrict"};
}
@Override
public String getSelectClauseNullString(int sqlType) {
return DB2Dialect.selectNullString( sqlType );

View File

@ -13,10 +13,8 @@ import java.io.InputStream;
import org.hibernate.bytecode.enhance.internal.bytebuddy.EnhancerImpl;
import org.hibernate.bytecode.enhance.spi.DefaultEnhancementContext;
import org.hibernate.bytecode.enhance.spi.Enhancer;
import org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState;
import org.hibernate.testing.TestForIssue;
import org.hibernate.test.bytecode.Bean;
import org.junit.Assert;
import org.junit.Test;

View File

@ -9,19 +9,15 @@ package org.hibernate.jpa.test.criteria.literal;
import java.util.List;
import java.util.Map;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Tuple;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import org.hibernate.dialect.H2Dialect;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.RequiresDialect;
import org.hibernate.testing.jdbc.SQLStatementInterceptor;
import org.hibernate.test.util.jdbc.PreparedStatementSpyConnectionProvider;
import org.junit.Before;
import org.junit.Test;

View File

@ -12,11 +12,9 @@ import java.util.HashMap;
import java.util.Map;
import javax.persistence.LockModeType;
import org.hibernate.Session;
import org.hibernate.cfg.AvailableSettings;
import org.hibernate.dialect.CockroachDialect;
import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.test.util.jdbc.PreparedStatementSpyConnectionProvider;
import org.hibernate.orm.test.util.jdbc.PreparedStatementSpyConnectionProvider;
import org.hibernate.testing.DialectChecks;
import org.hibernate.testing.RequiresDialectFeature;
import org.hibernate.testing.SkipForDialect;

View File

@ -27,7 +27,6 @@ import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.RequiresDialect;
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.jdbc.SQLStatementInterceptor;
import org.hibernate.test.util.jdbc.PreparedStatementSpyConnectionProvider;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

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.test.actionqueue;
package org.hibernate.orm.test.actionqueue;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.persistence.Entity;

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.test.actionqueue;
package org.hibernate.orm.test.actionqueue;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.persistence.Entity;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations;
package org.hibernate.orm.test.annotations;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;

View File

@ -1,4 +1,4 @@
package org.hibernate.test.annotations;
package org.hibernate.orm.test.annotations;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;

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.test.annotations;
package org.hibernate.orm.test.annotations;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations;
package org.hibernate.orm.test.annotations;
import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

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.test.annotations;
package org.hibernate.orm.test.annotations;
import java.util.Date;
import javax.persistence.Column;

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.test.annotations;
package org.hibernate.orm.test.annotations;
import java.util.Date;
import java.util.concurrent.atomic.AtomicReference;

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.test.annotations;
package org.hibernate.orm.test.annotations;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
@ -14,6 +14,11 @@ import org.hibernate.orm.test.annotations.inheritance.Carrot;
import org.hibernate.orm.test.annotations.inheritance.Tomato;
import org.hibernate.orm.test.annotations.inheritance.Vegetable;
import org.hibernate.orm.test.annotations.inheritance.VegetablePk;
import org.hibernate.test.annotations.AmericaCupClass;
import org.hibernate.test.annotations.Boat;
import org.hibernate.test.annotations.Country;
import org.hibernate.test.annotations.Ferry;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations;
package org.hibernate.orm.test.annotations;
import org.junit.Test;
import org.hibernate.AnnotationException;
@ -16,6 +16,8 @@ import org.hibernate.cfg.Environment;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.testing.ServiceRegistryBuilder;
import org.hibernate.test.annotations.IncorrectEntity;
import static org.junit.Assert.fail;
/**

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations;
package org.hibernate.orm.test.annotations;
import java.util.Properties;
@ -17,6 +17,7 @@ import org.hibernate.cfg.Environment;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.testing.ServiceRegistryBuilder;
import org.hibernate.test.annotations.Plane;
import org.junit.Assert;
import org.junit.Test;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations;
package org.hibernate.orm.test.annotations;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;

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.test.annotations;
package org.hibernate.orm.test.annotations;
import java.util.Date;
import java.util.HashSet;

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.test.annotations;
package org.hibernate.orm.test.annotations;
import org.hibernate.annotations.UpdateTimestamp;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

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.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.math.BigDecimal;
import javax.validation.ConstraintViolationException;

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.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.math.BigDecimal;
import java.util.Map;

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.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.lang.annotation.Annotation;
import java.math.BigDecimal;

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.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.math.BigDecimal;
import java.util.Locale;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.Max;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.math.BigDecimal;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

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.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.util.Map;

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.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.math.BigDecimal;
import java.util.Map;
@ -14,8 +14,6 @@ import javax.persistence.Id;
import javax.persistence.PersistenceException;
import javax.validation.ConstraintViolationException;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.mapping.Column;
import org.hibernate.mapping.PersistentClass;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import javax.persistence.CascadeType;
import javax.persistence.Embeddable;
import javax.persistence.ManyToOne;

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.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.math.BigDecimal;
import javax.validation.ConstraintViolation;
@ -14,7 +14,6 @@ import org.junit.Test;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.cfg.AvailableSettings;
import org.hibernate.cfg.Configuration;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;

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.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.util.ArrayList;
import java.util.List;

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.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.util.ArrayList;
import java.util.List;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import javax.persistence.Entity;
import javax.persistence.Id;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
/**

View File

@ -1,71 +1,71 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* 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.test.annotations.beanvalidation;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.validation.Valid;
import javax.validation.constraints.Future;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Length;
/**
* @author Emmanuel Bernard
* @author Hardy Ferentschik
*/
@Entity
public class Tv {
@Id
@Size(max = 2)
public String serial;
@Length(max = 5)
public String model;
public int size;
@Size(max = 2)
public String name;
@Future
public Date expDate;
@Size(min = 0)
public String description;
@Min(1000)
public BigInteger lifetime;
@NotNull
@Valid
public Tuner tuner;
@Valid
public Recorder recorder;
@Embeddable
public static class Tuner {
@NotNull
public String frequency;
}
@Embeddable
public static class Recorder {
@NotNull
@Column(name = "`time`")
public BigDecimal time;
}
}
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* 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.orm.test.annotations.beanvalidation;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.validation.Valid;
import javax.validation.constraints.Future;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Length;
/**
* @author Emmanuel Bernard
* @author Hardy Ferentschik
*/
@Entity
public class Tv {
@Id
@Size(max = 2)
public String serial;
@Length(max = 5)
public String model;
public int size;
@Size(max = 2)
public String name;
@Future
public Date expDate;
@Size(min = 0)
public String description;
@Min(1000)
public BigInteger lifetime;
@NotNull
@Valid
public Tuner tuner;
@Valid
public Recorder recorder;
@Embeddable
public static class Tuner {
@NotNull
public String frequency;
}
@Embeddable
public static class Recorder {
@NotNull
@Column(name = "`time`")
public BigDecimal time;
}
}

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.beanvalidation;
package org.hibernate.orm.test.annotations.beanvalidation;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.bytecode;
package org.hibernate.orm.test.annotations.bytecode;
/**

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.test.annotations.bytecode;
package org.hibernate.orm.test.annotations.bytecode;
import org.hibernate.Hibernate;
import org.hibernate.Session;
@ -39,7 +39,7 @@ public class ProxyBreakingTest extends BaseCoreFunctionalTestCase {
@Override
protected String[] getOrmXmlFiles() {
return new String[] {
"org/hibernate/test/annotations/bytecode/Hammer.hbm.xml"
"org/hibernate/orm/test/annotations/bytecode/Hammer.hbm.xml"
};
}
}

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.bytecode;
package org.hibernate.orm.test.annotations.bytecode;
/**

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.configuration;
package org.hibernate.orm.test.annotations.configuration;
import org.hibernate.cfg.Configuration;
@ -21,8 +21,8 @@ public class ConfigurationTest {
public void testMixPackageAndResourceOrdering() throws Exception {
try {
Configuration config = new Configuration();
config.addResource( "org/hibernate/test/annotations/configuration/orm.xml" );
config.addPackage( "org.hibernate.test.annotations.configuration" );
config.addResource( "org/hibernate/orm/test/annotations/configuration/orm.xml" );
config.addPackage( "org.hibernate.orm/test.annotations.configuration" );
}
catch( Exception e ) {
Assert.fail( "Processing package first when ORM.xml is used should not fail" );

View File

@ -5,6 +5,6 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
@GenericGenerator(name = "myGenerator", strategy = "sequence")
package org.hibernate.test.annotations.configuration;
package org.hibernate.orm.test.annotations.configuration;
import org.hibernate.annotations.GenericGenerator;

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.test.annotations.derivedidentities.e1.b;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;

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.test.annotations.derivedidentities.e1.b;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b;
import java.io.Serializable;
import javax.persistence.Embeddable;

View File

@ -4,12 +4,12 @@
* 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.test.annotations.derivedidentities.e1.b;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b;
import org.hibernate.Session;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.hibernate.test.util.SchemaUtil;
import org.hibernate.orm.test.util.SchemaUtil;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

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.test.annotations.derivedidentities.e1.c;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b;
import javax.persistence.Entity;
import javax.persistence.Id;

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.test.annotations.derivedidentities.e1.b;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;

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.test.annotations.derivedidentities.e1.b.specjmapid;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;

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.test.annotations.derivedidentities.e1.b.specjmapid;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Comparator;

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.test.annotations.derivedidentities.e1.b.specjmapid;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid;
import java.io.Serializable;

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.test.annotations.derivedidentities.e1.b.specjmapid;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid;
import java.math.BigDecimal;
import java.util.List;

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.test.annotations.derivedidentities.e1.b.specjmapid;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Column;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.lazy;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.lazy;
import java.math.BigDecimal;
import java.util.List;
@ -14,12 +14,18 @@ import junit.framework.Assert;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.Item;
import org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.Item;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
import org.junit.Test;
public class CompositeKeyDeleteTest extends BaseCoreFunctionalTestCase {
@Override
protected String getBaseForMappings() {
return "org/hibernate/orm/test/";
}
@Override
public String[] getMappings() {
return new String[] { "annotations/derivedidentities/e1/b/specjmapid/lazy/order_orm.xml" };
}

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.test.annotations.derivedidentities.e1.b.specjmapid.lazy;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.lazy;
import java.io.Serializable;
import java.math.BigDecimal;
@ -25,7 +25,7 @@ import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Version;
import org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.Item;
import org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.Item;
@NamedQueries({ @NamedQuery(name = "CustomerInventoryTwo.selectAll", query = "select a from CustomerInventoryTwo a") })
@SuppressWarnings("serial")

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.lazy;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.lazy;
import java.io.Serializable;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.lazy;
package org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.lazy;
import java.io.Serializable;
import java.math.BigDecimal;
@ -26,7 +26,7 @@ import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;
import org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.Item;
import org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.Item;
@SuppressWarnings("serial")
@NamedQueries({

View File

@ -11,7 +11,7 @@
<hibernate-mapping>
<class name="org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.lazy.CustomerTwo" mutable="true" table="O_CUSTOMER">
<class name="org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.lazy.CustomerTwo" mutable="true" table="O_CUSTOMER">
<cache usage="transactional" include="all"/>
<id name="id" type="java.lang.Integer" column="C_ID" access="field">
<generator class="assigned"/>
@ -31,7 +31,7 @@
<key>
<column name="CI_CUSTOMERID" not-null="true"/>
</key>
<one-to-many class="org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.lazy.CustomerInventoryTwo"/>
<one-to-many class="org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.lazy.CustomerInventoryTwo"/>
</bag>
</class>

View File

@ -1,39 +1,39 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
~ 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>.
-->
<entity-mappings
xmlns="http://java.sun.com/xml/ns/persistence/orm"
version="2.0">
<entity class="org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.lazy.CustomerTwo">
<attributes>
<one-to-many name="customerInventories" mapped-by="customer" fetch="EAGER">
<cascade>
<cascade-all/>
</cascade>
</one-to-many>
</attributes>
</entity>
<entity class="org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.lazy.CustomerInventoryTwo">
<attributes>
<many-to-one name="vehicle" fetch="EAGER">
<join-column name="CI_ITEMID"/>
<cascade>
<cascade-merge/>
</cascade>
</many-to-one>
<many-to-one name="customer" fetch="EAGER">
<join-column name="CI_CUSTOMERID" insertable="false" nullable="false"/>
<cascade>
<cascade-merge/>
</cascade>
</many-to-one>
</attributes>
</entity>
</entity-mappings>
<?xml version="1.0" encoding="UTF-8" ?>
<!--
~ Hibernate, Relational Persistence for Idiomatic Java
~
~ 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>.
-->
<entity-mappings
xmlns="http://java.sun.com/xml/ns/persistence/orm"
version="2.0">
<entity class="org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.lazy.CustomerTwo">
<attributes>
<one-to-many name="customerInventories" mapped-by="customer" fetch="EAGER">
<cascade>
<cascade-all/>
</cascade>
</one-to-many>
</attributes>
</entity>
<entity class="org.hibernate.orm.test.annotations.derivedidentities.e1.b.specjmapid.lazy.CustomerInventoryTwo">
<attributes>
<many-to-one name="vehicle" fetch="EAGER">
<join-column name="CI_ITEMID"/>
<cascade>
<cascade-merge/>
</cascade>
</many-to-one>
<many-to-one name="customer" fetch="EAGER">
<join-column name="CI_CUSTOMERID" insertable="false" nullable="false"/>
<cascade>
<cascade-merge/>
</cascade>
</many-to-one>
</attributes>
</entity>
</entity-mappings>

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.test.annotations.derivedidentities.e1.c;
package org.hibernate.orm.test.annotations.derivedidentities.e1.c;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

View File

@ -4,12 +4,12 @@
* 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.test.annotations.derivedidentities.e1.c;
package org.hibernate.orm.test.annotations.derivedidentities.e1.c;
import org.hibernate.Session;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.hibernate.test.util.SchemaUtil;
import org.hibernate.orm.test.util.SchemaUtil;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

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.test.annotations.derivedidentities.e1.b;
package org.hibernate.orm.test.annotations.derivedidentities.e1.c;
import javax.persistence.Entity;
import javax.persistence.Id;

View File

@ -4,14 +4,14 @@
* 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.test.annotations.derivedidentities.e4.b;
package org.hibernate.orm.test.annotations.derivedidentities.e4.b;
import java.util.Date;
import org.hibernate.Session;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.hibernate.test.util.SchemaUtil;
import org.hibernate.orm.test.util.SchemaUtil;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

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.test.annotations.derivedidentities.e4.b;
package org.hibernate.orm.test.annotations.derivedidentities.e4.b;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;

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.test.annotations.derivedidentities.e4.b;
package org.hibernate.orm.test.annotations.derivedidentities.e4.b;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Entity;

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.test.annotations.derivedidentities.e4.b;
package org.hibernate.orm.test.annotations.derivedidentities.e4.b;
import javax.persistence.Entity;
import javax.persistence.Id;

View File

@ -4,12 +4,12 @@
* 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.test.annotations.derivedidentities.e5.c;
package org.hibernate.orm.test.annotations.derivedidentities.e5.c;
import org.hibernate.Session;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.hibernate.test.util.SchemaUtil;
import org.hibernate.orm.test.util.SchemaUtil;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

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.test.annotations.derivedidentities.e5.c;
package org.hibernate.orm.test.annotations.derivedidentities.e5.c;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

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.test.annotations.derivedidentities.e5.c;
package org.hibernate.orm.test.annotations.derivedidentities.e5.c;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

View File

@ -6,13 +6,13 @@
*/
//$Id$
package org.hibernate.test.annotations.duplicatedgenerator;
package org.hibernate.orm.test.annotations.duplicatedgenerator;
import org.hibernate.AnnotationException;
import org.hibernate.DuplicateMappingException;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.cfg.Environment;
import org.hibernate.orm.test.annotations.Company;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.testing.ServiceRegistryBuilder;
@ -31,10 +31,10 @@ public class DuplicateTest {
SessionFactory sf = null;
try {
cfg.addAnnotatedClass( Flight.class );
cfg.addAnnotatedClass( org.hibernate.test.annotations.Flight.class );
cfg.addAnnotatedClass( org.hibernate.test.annotations.Company.class );
cfg.addResource( "org/hibernate/test/annotations/orm.xml" );
cfg.addResource( "org/hibernate/test/annotations/duplicatedgenerator/orm.xml" );
cfg.addAnnotatedClass( org.hibernate.orm.test.annotations.Flight.class );
cfg.addAnnotatedClass( Company.class );
cfg.addResource( "org/hibernate/orm/test/annotations/orm.xml" );
cfg.addResource( "org/hibernate/orm/test/annotations/duplicatedgenerator/orm.xml" );
serviceRegistry = ServiceRegistryBuilder.buildServiceRegistry( cfg.getProperties() );
sf = cfg.buildSessionFactory( serviceRegistry );
Assert.fail( "Should not be able to map the same entity name twice" );

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.duplicatedgenerator;
package org.hibernate.orm.test.annotations.duplicatedgenerator;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

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.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import java.math.BigDecimal;
import java.util.ArrayList;
@ -32,6 +32,7 @@ import org.hibernate.testing.RequiresDialectFeature;
import org.hibernate.testing.ServiceRegistryBuilder;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
@ -44,6 +45,8 @@ import static org.junit.Assert.fail;
/**
* @author Emmanuel Bernard
*/
// todo (6.0): needs a composite user type mechanism e.g. by providing a custom ComponentTuplizer/Instantiator
@Ignore( "Missing support for composite user types" )
public class BasicHibernateAnnotationsTest extends BaseCoreFunctionalTestCase {
@Override
protected boolean isCleanupTestDataRequired() {
@ -665,7 +668,7 @@ public class BasicHibernateAnnotationsTest extends BaseCoreFunctionalTestCase {
public void testFormula() throws Exception {
Session s = openSession();
Transaction tx = s.beginTransaction();
org.hibernate.test.annotations.entity.Flight airFrance = new Flight();
Flight airFrance = new Flight();
airFrance.setId( new Long( 747 ) );
airFrance.setMaxAltitude( 10000 );
s.persist( airFrance );
@ -795,7 +798,7 @@ public class BasicHibernateAnnotationsTest extends BaseCoreFunctionalTestCase {
@Override
protected String[] getAnnotatedPackages() {
return new String[]{
"org.hibernate.test.annotations.entity"
"org.hibernate.orm.test.annotations.entity"
};
}

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import java.io.Serializable;
import java.sql.PreparedStatement;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Entity;
/**

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.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import java.io.Serializable;
/**

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;

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.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.MappedSuperclass;
import org.hibernate.annotations.Parameter;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import java.util.Set;
import javax.persistence.ElementCollection;

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.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

View File

@ -7,7 +7,7 @@
//$Id: BasicHibernateAnnotationsTest.java 17531 2009-09-22 17:43:48Z epbernard $
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

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.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import static org.junit.Assert.fail;
@ -27,7 +27,7 @@ public class HibernateAnnotationMappingTest extends BaseUnitTestCase {
public void testUniqueConstraintAnnotationOnNaturalIds() throws Exception {
Configuration configuration = new Configuration();
configuration.setProperty( Environment.HBM2DDL_AUTO, "create-drop" );
configuration.addAnnotatedClass(Month.class);
configuration.addAnnotatedClass( Month.class);
SessionFactory sf = null;
try {
sf = configuration.buildSessionFactory();

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.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import org.junit.Test;

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.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Embeddable;
import org.hibernate.annotations.Parameter;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
/**

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.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

View File

@ -6,7 +6,7 @@
*/
//$Id$
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Currency;

View File

@ -5,7 +5,7 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.annotations.entity;
package org.hibernate.orm.test.annotations.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

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