HHH-6201 Import cleanup
This commit is contained in:
parent
2ebe0c4005
commit
d3f20f44ea
|
@ -23,7 +23,6 @@
|
|||
*/
|
||||
package org.hibernate.metamodel.binding;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -24,9 +24,7 @@
|
|||
package org.hibernate.metamodel.relational;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
|
@ -39,7 +37,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||
public abstract class AbstractTableSpecification implements TableSpecification {
|
||||
private final static AtomicInteger tableCounter = new AtomicInteger( 0 );
|
||||
private final int tableNumber;
|
||||
private final LinkedHashMap<String,SimpleValue> values = new LinkedHashMap<String,SimpleValue>();
|
||||
private final LinkedHashMap<String, SimpleValue> values = new LinkedHashMap<String, SimpleValue>();
|
||||
private PrimaryKey primaryKey = new PrimaryKey( this );
|
||||
private List<ForeignKey> foreignKeys = new ArrayList<ForeignKey>();
|
||||
|
||||
|
@ -59,21 +57,21 @@ public abstract class AbstractTableSpecification implements TableSpecification {
|
|||
|
||||
@Override
|
||||
public Column getOrCreateColumn(String name) {
|
||||
if(values.containsKey( name )){
|
||||
if ( values.containsKey( name ) ) {
|
||||
return (Column) values.get( name );
|
||||
}
|
||||
final Column column = new Column( this, values.size(), name );
|
||||
values.put(name, column );
|
||||
values.put( name, column );
|
||||
return column;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DerivedValue getOrCreateDerivedValue(String fragment) {
|
||||
if(values.containsKey( fragment )){
|
||||
if ( values.containsKey( fragment ) ) {
|
||||
return (DerivedValue) values.get( fragment );
|
||||
}
|
||||
final DerivedValue value = new DerivedValue( this, values.size(), fragment );
|
||||
values.put(fragment, value );
|
||||
values.put( fragment, value );
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ import javax.persistence.metamodel.Attribute;
|
|||
import javax.persistence.metamodel.IdentifiableType;
|
||||
import javax.persistence.metamodel.PluralAttribute;
|
||||
import javax.persistence.metamodel.Type;
|
||||
import org.hibernate.EntityMode;
|
||||
import org.hibernate.annotations.common.AssertionFailure;
|
||||
import org.hibernate.ejb.internal.EntityManagerMessageLogger;
|
||||
import org.hibernate.mapping.Collection;
|
||||
|
|
Loading…
Reference in New Issue