mirror of
https://gitee.com/jmix/cuba.git
synced 2024-11-30 18:27:56 +08:00
Update MyBatis version #PL-3749
This commit is contained in:
parent
fb53e7f08c
commit
7c4c94581a
@ -222,8 +222,8 @@ configure(coreModule) {
|
||||
compile(group: 'org.jgroups', name: 'jgroups', version: '2.12.1.Final')
|
||||
compile(group: 'org.aspectj', name: 'aspectjrt', version: '1.6.12')
|
||||
compile(group: 'org.aspectj', name: 'aspectjweaver', version: '1.6.12')
|
||||
compile(group: 'org.mybatis', name: 'mybatis', version: '3.0.5')
|
||||
compile(group: 'org.mybatis', name: 'mybatis-spring', version: '1.0.1')
|
||||
compile(group: 'org.mybatis', name: 'mybatis', version: '3.2.7')
|
||||
compile(group: 'org.mybatis', name: 'mybatis-spring', version: '1.2.2')
|
||||
compile(group: 'org.springframework', name: 'spring-context-support', version: springVersion)
|
||||
compile(group: 'org.springframework', name: 'spring-orm', version: springVersion)
|
||||
compile(group: 'org.springframework', name: 'spring-tx', version: springVersion)
|
||||
|
@ -25,18 +25,30 @@ public class UUIDTypeHandler implements TypeHandler {
|
||||
@Override
|
||||
public Object getResult(ResultSet rs, String columnName) throws SQLException {
|
||||
String val = rs.getString(columnName);
|
||||
if (val != null)
|
||||
if (val != null) {
|
||||
return UuidProvider.fromString(val);
|
||||
else
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getResult(ResultSet rs, int columnIndex) throws SQLException {
|
||||
String val = rs.getString(columnIndex);
|
||||
if (val != null) {
|
||||
return UuidProvider.fromString(val);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getResult(CallableStatement cs, int columnIndex) throws SQLException {
|
||||
String val = cs.getString(columnIndex);
|
||||
if (val != null)
|
||||
if (val != null) {
|
||||
return UuidProvider.fromString(val);
|
||||
else
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user