mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-20 01:55:02 +00:00
minor
This commit is contained in:
parent
d29fdbb8d5
commit
84a3233267
@ -46,6 +46,7 @@
|
||||
import org.hibernate.type.CompositeType;
|
||||
import org.hibernate.type.EmbeddedComponentType;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
import static org.hibernate.generator.EventType.INSERT;
|
||||
import static org.hibernate.id.IdentifierGeneratorHelper.POST_INSERT_INDICATOR;
|
||||
|
||||
@ -122,7 +123,7 @@ private Component(Component original) {
|
||||
this.parentProperty = original.parentProperty;
|
||||
this.owner = original.owner;
|
||||
this.dynamic = original.dynamic;
|
||||
this.metaAttributes = original.metaAttributes == null ? null : new HashMap<>(original.metaAttributes);
|
||||
this.metaAttributes = original.metaAttributes == null ? null : new HashMap<>( original.metaAttributes );
|
||||
this.isKey = original.isKey;
|
||||
this.roleName = original.roleName;
|
||||
this.customInstantiator = original.customInstantiator;
|
||||
@ -182,8 +183,8 @@ public Iterator<Selectable> getColumnIterator() {
|
||||
public List<Selectable> getSelectables() {
|
||||
if ( cachedSelectables == null ) {
|
||||
cachedSelectables = properties.stream()
|
||||
.flatMap(p -> p.getSelectables().stream())
|
||||
.collect(Collectors.toList());
|
||||
.flatMap( p -> p.getSelectables().stream() )
|
||||
.collect( toList() );
|
||||
}
|
||||
return cachedSelectables;
|
||||
}
|
||||
@ -196,7 +197,7 @@ public List<Column> getColumns() {
|
||||
else {
|
||||
this.cachedColumns = properties.stream()
|
||||
.flatMap( p -> p.getValue().getColumns().stream() )
|
||||
.collect( Collectors.toList() );
|
||||
.collect( toList() );
|
||||
return cachedColumns;
|
||||
}
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ public UnknownBasicJavaType(Type type, MutabilityPlan<T> mutabilityPlan) {
|
||||
@Override
|
||||
public JdbcType getRecommendedJdbcType(JdbcTypeIndicators context) {
|
||||
throw new JdbcTypeRecommendationException(
|
||||
"Could not determine recommended JdbcType for `" + getJavaType().getTypeName() + "`"
|
||||
"Could not determine recommended JdbcType for Java type '" + getJavaType().getTypeName() + "'"
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user