Здравствуйте, я хочу установить mytypemappings для подключения, но я не могу изменить тип источника данных mappings.setType map не работает.
DataSource javax. sql,
Map map = dataSource.getConnection().getTypeMap();
map.put("mytpe", myclass);
connection = dataSource.getConnection();
connection.setTypeMap(map);//(connection set and when I get I see type map)
dataSource.getConnection().setTypeMap(map);//(connection set and when I get I cant see type map)
DriverManagerDataSource dataSource = new DriverManagerDataSource(connectionstringinfos);
Map<String,Class<Object> map2= dataSource.getConnection().getTypeMap();
map2.put("mymap",MyMap.class);
dataSource.getConnection().setTypeMap(map2);
dataSource.getConnection().getTypeMap();-->that time mymap does not seen