This commit is contained in:
Gavin 2023-05-03 21:07:17 +03:00 committed by Gavin King
parent d29fdbb8d5
commit 84a3233267
2 changed files with 14 additions and 13 deletions

View File

@ -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;
}
}

View File

@ -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() + "'"
);
}