mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 22:39:13 +00:00
HHH-8950 Avoid useless creation of an array in #getColumnSpan(Mapping).
This commit is contained in:
parent
b09ff8af0a
commit
fd27956a6d
@ -151,7 +151,7 @@ public final Class getReturnedClass() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final int getColumnSpan(Mapping mapping) throws MappingException {
|
public final int getColumnSpan(Mapping mapping) throws MappingException {
|
||||||
return sqlTypes( mapping ).length;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int[] sqlTypes(Mapping mapping) throws MappingException {
|
public final int[] sqlTypes(Mapping mapping) throws MappingException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user