Permalink
Browse files

HHH-7197 reimport imports

  • Loading branch information...
1 parent e4a82a0 commit d3b640cb755e20db84d5d528b03e1ae474bb68e7 @stliu stliu committed Mar 26, 2012
Showing 618 changed files with 1,715 additions and 1,484 deletions.
@@ -33,7 +33,6 @@
import org.gradle.api.Project;
import org.gradle.api.artifacts.Configuration;
import org.gradle.api.logging.Logging;
-
import org.slf4j.Logger;
import org.hibernate.build.qalab.DatabaseAllocation;
@@ -28,7 +28,6 @@
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
-import java.lang.String;
import org.apache.tools.ant.taskdefs.condition.Os;
import org.apache.tools.ant.util.FileUtils;
@@ -1,6 +1,5 @@
import java.io.Serializable;
import java.util.Date;
-import java.util.Iterator;
import org.hibernate.EmptyInterceptor;
import org.hibernate.Transaction;
@@ -23,15 +23,14 @@
*/
package org.hibernate.service.jdbc.connections.internal;
-import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
+import javax.sql.DataSource;
import com.mchange.v2.c3p0.DataSources;
-
import org.jboss.logging.Logger;
import org.hibernate.HibernateException;
@@ -23,17 +23,18 @@
*/
package org.hibernate.service.jdbc.connections.internal;
-import static org.jboss.logging.Logger.Level.INFO;
-import static org.jboss.logging.Logger.Level.WARN;
import java.sql.SQLException;
-import org.hibernate.internal.CoreMessageLogger;
-
import org.jboss.logging.Cause;
import org.jboss.logging.LogMessage;
import org.jboss.logging.Message;
import org.jboss.logging.MessageLogger;
+import org.hibernate.internal.CoreMessageLogger;
+
+import static org.jboss.logging.Logger.Level.INFO;
+import static org.jboss.logging.Logger.Level.WARN;
+
/**
* The jboss-logging {@link MessageLogger} for the hibernate-c3p0 module. It reserves message ids ranging from
* 10001 to 15000 inclusively.
@@ -29,7 +29,6 @@
import org.hibernate.bytecode.instrumentation.spi.FieldInterceptor;
import org.hibernate.collection.spi.PersistentCollection;
import org.hibernate.engine.HibernateIterator;
-import org.hibernate.engine.jdbc.LobCreationContext;
import org.hibernate.engine.jdbc.LobCreator;
import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.proxy.HibernateProxy;
@@ -23,7 +23,7 @@
*/
package org.hibernate.annotations;
-import java.lang.annotation.*;
+import java.lang.annotation.Retention;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
@@ -23,13 +23,13 @@
*/
package org.hibernate.annotations;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
/**
* This specifies that a property is part of the natural id of the entity.
*
@@ -22,6 +22,7 @@
* Boston, MA 02110-1301 USA
*/
package org.hibernate.cfg;
+
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.Arrays;
@@ -34,7 +35,6 @@
import java.util.Map;
import java.util.Properties;
import java.util.Set;
-
import javax.persistence.Basic;
import javax.persistence.Cacheable;
import javax.persistence.CollectionTable;
@@ -80,6 +80,8 @@
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;
+import org.jboss.logging.Logger;
+
import org.hibernate.AnnotationException;
import org.hibernate.AssertionFailure;
import org.hibernate.EntityMode;
@@ -125,7 +127,6 @@
import org.hibernate.annotations.Source;
import org.hibernate.annotations.Tuplizer;
import org.hibernate.annotations.Tuplizers;
-import org.hibernate.annotations.Type;
import org.hibernate.annotations.TypeDef;
import org.hibernate.annotations.TypeDefs;
import org.hibernate.annotations.Where;
@@ -168,7 +169,6 @@
import org.hibernate.mapping.Subclass;
import org.hibernate.mapping.ToOne;
import org.hibernate.mapping.UnionSubclass;
-import org.jboss.logging.Logger;
/**
* JSR 175 annotation binder which reads the annotations from classes, applies the
@@ -23,6 +23,14 @@
*/
package org.hibernate.cfg.annotations;
+import java.util.ArrayList;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+import java.util.StringTokenizer;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.ElementCollection;
@@ -35,14 +43,6 @@
import javax.persistence.MapKey;
import javax.persistence.MapKeyColumn;
import javax.persistence.OneToMany;
-import java.util.ArrayList;
-import java.util.Comparator;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-import java.util.StringTokenizer;
import org.jboss.logging.Logger;
@@ -27,7 +27,6 @@
import java.util.Iterator;
import java.util.List;
import java.util.Map;
-
import javax.persistence.Access;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
@@ -36,6 +35,8 @@
import javax.persistence.SecondaryTable;
import javax.persistence.SecondaryTables;
+import org.jboss.logging.Logger;
+
import org.hibernate.AnnotationException;
import org.hibernate.AssertionFailure;
import org.hibernate.EntityMode;
@@ -89,7 +90,6 @@
import org.hibernate.mapping.Table;
import org.hibernate.mapping.TableOwner;
import org.hibernate.mapping.Value;
-import org.jboss.logging.Logger;
/**
* Stateful holder and processor for binding Entity information
@@ -30,7 +30,6 @@
import org.hibernate.dialect.function.SQLFunctionTemplate;
import org.hibernate.dialect.function.VarArgsSQLFunction;
import org.hibernate.type.StandardBasicTypes;
-import org.hibernate.type.descriptor.sql.SmallIntTypeDescriptor;
import org.hibernate.type.descriptor.sql.SqlTypeDescriptor;
import org.hibernate.type.descriptor.sql.TinyIntTypeDescriptor;
@@ -22,9 +22,9 @@
* Boston, MA 02110-1301 USA
*/
package org.hibernate.dialect.lock;
+
import java.io.Serializable;
-import org.hibernate.JDBCException;
import org.hibernate.StaleObjectStateException;
import org.hibernate.engine.spi.SessionImplementor;
@@ -26,10 +26,8 @@
import java.io.Serializable;
import org.hibernate.HibernateException;
-import org.hibernate.JDBCException;
import org.hibernate.LockMode;
import org.hibernate.OptimisticLockException;
-import org.hibernate.StaleObjectStateException;
import org.hibernate.action.internal.EntityVerifyVersionProcess;
import org.hibernate.engine.spi.EntityEntry;
import org.hibernate.engine.spi.SessionImplementor;
@@ -31,7 +31,6 @@
import org.hibernate.JDBCException;
import org.hibernate.LockMode;
import org.hibernate.LockOptions;
-import org.hibernate.PessimisticLockException;
import org.hibernate.StaleObjectStateException;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.engine.spi.SessionImplementor;
@@ -27,6 +27,8 @@
import java.sql.PreparedStatement;
import java.sql.SQLException;
+import org.jboss.logging.Logger;
+
import org.hibernate.HibernateException;
import org.hibernate.JDBCException;
import org.hibernate.LockMode;
@@ -37,7 +39,6 @@
import org.hibernate.persister.entity.Lockable;
import org.hibernate.pretty.MessageHelper;
import org.hibernate.sql.Update;
-import org.jboss.logging.Logger;
/**
* A pessimistic locking strategy where the locks are obtained through update statements.
@@ -31,7 +31,6 @@
import org.hibernate.JDBCException;
import org.hibernate.LockMode;
import org.hibernate.LockOptions;
-import org.hibernate.PessimisticLockException;
import org.hibernate.StaleObjectStateException;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.engine.spi.SessionImplementor;
@@ -27,6 +27,8 @@
import java.sql.PreparedStatement;
import java.sql.SQLException;
+import org.jboss.logging.Logger;
+
import org.hibernate.HibernateException;
import org.hibernate.JDBCException;
import org.hibernate.LockMode;
@@ -37,7 +39,6 @@
import org.hibernate.persister.entity.Lockable;
import org.hibernate.pretty.MessageHelper;
import org.hibernate.sql.Update;
-import org.jboss.logging.Logger;
/**
* A pessimistic locking strategy where the locks are obtained through update statements.
@@ -40,7 +40,6 @@
import org.hibernate.event.spi.EventSource;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.type.Type;
-import org.hibernate.type.TypeHelper;
/**
* Maintains a {@link org.hibernate.engine.spi.PersistenceContext}-level 2-way cross-reference (xref) between the
@@ -36,7 +36,9 @@
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
+
import org.jboss.logging.Logger;
+
import org.hibernate.AssertionFailure;
import org.hibernate.Hibernate;
import org.hibernate.HibernateException;
@@ -49,8 +49,8 @@
import org.hibernate.engine.jdbc.spi.SqlExceptionHelper;
import org.hibernate.engine.jdbc.spi.SqlStatementLogger;
import org.hibernate.exception.internal.SQLExceptionTypeDelegate;
-import org.hibernate.exception.internal.StandardSQLExceptionConverter;
import org.hibernate.exception.internal.SQLStateConversionDelegate;
+import org.hibernate.exception.internal.StandardSQLExceptionConverter;
import org.hibernate.exception.spi.SQLExceptionConverter;
import org.hibernate.internal.CoreMessageLogger;
import org.hibernate.internal.util.ReflectHelper;
@@ -25,7 +25,6 @@
import java.io.Serializable;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
@@ -31,6 +31,7 @@
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
+
import org.jboss.logging.Logger;
import org.hibernate.MappingException;
@@ -45,12 +45,12 @@
import org.hibernate.action.internal.CollectionRecreateAction;
import org.hibernate.action.internal.CollectionRemoveAction;
import org.hibernate.action.internal.CollectionUpdateAction;
-import org.hibernate.action.internal.UnresolvedEntityInsertActions;
import org.hibernate.action.internal.EntityAction;
import org.hibernate.action.internal.EntityDeleteAction;
import org.hibernate.action.internal.EntityIdentityInsertAction;
import org.hibernate.action.internal.EntityInsertAction;
import org.hibernate.action.internal.EntityUpdateAction;
+import org.hibernate.action.internal.UnresolvedEntityInsertActions;
import org.hibernate.action.spi.AfterTransactionCompletionProcess;
import org.hibernate.action.spi.BeforeTransactionCompletionProcess;
import org.hibernate.action.spi.Executable;
@@ -33,7 +33,6 @@
import org.hibernate.LockMode;
import org.hibernate.LockOptions;
import org.hibernate.ReplicationMode;
-import org.hibernate.TransientObjectException;
import org.hibernate.TransientPropertyValueException;
import org.hibernate.collection.spi.PersistentCollection;
import org.hibernate.engine.internal.ForeignKeys;
@@ -42,7 +42,6 @@
import org.hibernate.event.spi.RefreshEvent;
import org.hibernate.event.spi.RefreshEventListener;
import org.hibernate.internal.CoreMessageLogger;
-import org.hibernate.internal.util.collections.IdentityMap;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.pretty.MessageHelper;
import org.hibernate.type.CollectionType;
@@ -25,6 +25,8 @@
import java.io.Serializable;
+import org.jboss.logging.Logger;
+
import org.hibernate.HibernateException;
import org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy;
import org.hibernate.engine.spi.CachedNaturalIdValueSource;
@@ -34,7 +36,6 @@
import org.hibernate.internal.CoreMessageLogger;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.pretty.MessageHelper;
-import org.jboss.logging.Logger;
/**
* Defines the default load event listeners used by hibernate for loading entities
@@ -30,7 +30,6 @@
import java.util.Set;
import org.hibernate.AssertionFailure;
-import org.hibernate.internal.util.collections.IdentityMap;
/**
* EventCache is a Map implementation that can be used by an event
@@ -39,7 +39,6 @@
import org.hibernate.QueryTimeoutException;
import org.hibernate.exception.ConstraintViolationException;
import org.hibernate.exception.DataException;
-import org.hibernate.exception.GenericJDBCException;
import org.hibernate.exception.JDBCConnectionException;
import org.hibernate.exception.LockAcquisitionException;
import org.hibernate.exception.SQLGrammarException;
@@ -23,10 +23,6 @@
*/
package org.hibernate.exception.spi;
-import java.sql.SQLException;
-
-import org.hibernate.JDBCException;
-
/**
* @author Steve Ebersole
*/
@@ -87,8 +87,6 @@
import org.hibernate.hql.spi.QueryTranslator;
import org.hibernate.id.BulkInsertionCapableIdentifierGenerator;
import org.hibernate.id.IdentifierGenerator;
-import org.hibernate.id.PostInsertIdentifierGenerator;
-import org.hibernate.id.SequenceGenerator;
import org.hibernate.internal.CoreMessageLogger;
import org.hibernate.internal.util.StringHelper;
import org.hibernate.internal.util.collections.ArrayHelper;
Oops, something went wrong.

0 comments on commit d3b640c

Please sign in to comment.