@@ -817,7 +817,7 @@ public Void doInHibernate(Session session) throws HibernateException, SQLExcepti
817
817
* @throws SQLException if thrown by JDBC methods
818
818
* @see #executeSchemaStatement
819
819
*/
820
- protected void executeSchemaScript (Connection con , String ... sql ) throws SQLException {
820
+ protected void executeSchemaScript (Connection con , String [] sql ) throws SQLException {
821
821
if (sql != null && sql .length > 0 ) {
822
822
boolean oldAutoCommit = con .getAutoCommit ();
823
823
if (!oldAutoCommit ) {
@@ -954,9 +954,8 @@ public DataSource getDataSource() {
954
954
* resources are specified locally via this bean.
955
955
* @see org.hibernate.cfg.Configuration#configure(java.net.URL)
956
956
*/
957
- public This setConfigLocation (Resource configLocation ) {
957
+ public void setConfigLocation (Resource configLocation ) {
958
958
this .configLocations = new Resource [] {configLocation };
959
- return this .instance ;
960
959
}
961
960
962
961
/**
@@ -979,9 +978,8 @@ public Properties getHibernateProperties() {
979
978
* or to specify all mappings locally.
980
979
* @see org.hibernate.cfg.Configuration#addCacheableFile(java.io.File)
981
980
*/
982
- public This setCacheableMappingLocations (Resource ... cacheableMappingLocations ) {
981
+ public void setCacheableMappingLocations (Resource [] cacheableMappingLocations ) {
983
982
this .cacheableMappingLocations = cacheableMappingLocations ;
984
- return this .instance ;
985
983
}
986
984
987
985
@@ -992,9 +990,8 @@ public This setCacheableMappingLocations(Resource... cacheableMappingLocations)
992
990
* resources are specified locally via this bean.
993
991
* @see org.hibernate.cfg.Configuration#configure(java.net.URL)
994
992
*/
995
- public This setConfigLocations (Resource ... configLocations ) {
993
+ public void setConfigLocations (Resource [] configLocations ) {
996
994
this .configLocations = configLocations ;
997
- return this .instance ;
998
995
}
999
996
1000
997
/**
@@ -1006,9 +1003,8 @@ public This setConfigLocations(Resource... configLocations) {
1006
1003
* @see org.springframework.orm.hibernate3.support.BlobByteArrayType
1007
1004
* @see org.springframework.orm.hibernate3.support.BlobSerializableType
1008
1005
*/
1009
- public This setLobHandler (LobHandler lobHandler ) {
1006
+ public void setLobHandler (LobHandler lobHandler ) {
1010
1007
this .lobHandler = lobHandler ;
1011
- return this .instance ;
1012
1008
}
1013
1009
1014
1010
/**
@@ -1170,7 +1166,7 @@ protected ClassLoader getBeanClassLoader() {
1170
1166
* @see #setMappingLocations
1171
1167
* @see org.hibernate.cfg.Configuration#addResource
1172
1168
*/
1173
- public This setMappingResources (String ... mappingResources ) {
1169
+ public This setMappingResources (String [] mappingResources ) {
1174
1170
this .mappingResources = mappingResources ;
1175
1171
return instance ;
1176
1172
}
@@ -1182,7 +1178,7 @@ public This setMappingResources(String... mappingResources) {
1182
1178
* or to specify all mappings locally.
1183
1179
* @see org.hibernate.cfg.Configuration#addJar(java.io.File)
1184
1180
*/
1185
- public This setMappingJarLocations (Resource ... mappingJarLocations ) {
1181
+ public This setMappingJarLocations (Resource [] mappingJarLocations ) {
1186
1182
this .mappingJarLocations = mappingJarLocations ;
1187
1183
return instance ;
1188
1184
}
@@ -1194,7 +1190,7 @@ public This setMappingJarLocations(Resource... mappingJarLocations) {
1194
1190
* or to specify all mappings locally.
1195
1191
* @see org.hibernate.cfg.Configuration#addDirectory(java.io.File)
1196
1192
*/
1197
- public This setMappingDirectoryLocations (Resource ... mappingDirectoryLocations ) {
1193
+ public This setMappingDirectoryLocations (Resource [] mappingDirectoryLocations ) {
1198
1194
this .mappingDirectoryLocations = mappingDirectoryLocations ;
1199
1195
return instance ;
1200
1196
}
@@ -1208,7 +1204,7 @@ public This setMappingDirectoryLocations(Resource... mappingDirectoryLocations)
1208
1204
* or to specify all mappings locally.
1209
1205
* @see org.hibernate.cfg.Configuration#addInputStream
1210
1206
*/
1211
- public This setMappingLocations (Resource ... mappingLocations ) {
1207
+ public This setMappingLocations (Resource [] mappingLocations ) {
1212
1208
this .mappingLocations = mappingLocations ;
1213
1209
return instance ;
1214
1210
}
@@ -1325,7 +1321,7 @@ public This setEventListeners(Map<String, Object> eventListeners) {
1325
1321
* @see FilterDefinitionFactoryBean
1326
1322
* @see org.hibernate.cfg.Configuration#addFilterDefinition
1327
1323
*/
1328
- public This setFilterDefinitions (FilterDefinition ... filterDefinitions ) {
1324
+ public This setFilterDefinitions (FilterDefinition [] filterDefinitions ) {
1329
1325
this .filterDefinitions = filterDefinitions ;
1330
1326
return this .instance ;
1331
1327
}
@@ -1339,7 +1335,7 @@ public This setFilterDefinitions(FilterDefinition... filterDefinitions) {
1339
1335
* @see TypeDefinitionBean
1340
1336
* @see org.hibernate.cfg.Mappings#addTypeDef(String, String, java.util.Properties)
1341
1337
*/
1342
- public This setTypeDefinitions (TypeDefinitionBean ... typeDefinitions ) {
1338
+ public This setTypeDefinitions (TypeDefinitionBean [] typeDefinitions ) {
1343
1339
this .typeDefinitions = typeDefinitions ;
1344
1340
return this .instance ;
1345
1341
}
0 commit comments