@@ -52,6 +52,7 @@ public static class Controllers {
52
52
private final CollectionService collectionService ;
53
53
private final CountryService countryService ;
54
54
private final SeriesService seriesService ;
55
+ private final SeriesImageService seriesImageService ;
55
56
private final SeriesImportService seriesImportService ;
56
57
private final SeriesSalesService seriesSalesService ;
57
58
private final ParticipantService participantService ;
@@ -71,7 +72,7 @@ public SeriesController seriesController() {
71
72
72
73
@ Bean
73
74
public RestSeriesController restSeriesController () {
74
- return new RestSeriesController (seriesService );
75
+ return new RestSeriesController (seriesService , seriesImageService );
75
76
}
76
77
77
78
}
@@ -80,6 +81,7 @@ public RestSeriesController restSeriesController() {
80
81
@ RequiredArgsConstructor
81
82
public static class Services {
82
83
84
+ private final SeriesImageDao seriesImageDao ;
83
85
private final ImageService imageService ;
84
86
private final Map <String , StampsCatalogDao > stampsCatalogDaos ;
85
87
@@ -105,6 +107,14 @@ public SeriesService seriesService(
105
107
zagorskiCatalogService
106
108
);
107
109
}
110
+
111
+ @ Bean
112
+ public SeriesImageService seriesImageService () {
113
+ return new SeriesImageServiceImpl (
114
+ LoggerFactory .getLogger (SeriesImageServiceImpl .class ),
115
+ seriesImageDao
116
+ );
117
+ }
108
118
109
119
@ Bean (name = "michelCatalog" )
110
120
public StampsCatalogService michelCatalogService () {
@@ -163,7 +173,10 @@ public StampsCatalogService zagorskiCatalogService() {
163
173
}
164
174
165
175
@ RequiredArgsConstructor
166
- @ PropertySource ("classpath:/sql/stamps_catalog_dao_queries.properties" )
176
+ @ PropertySource ({
177
+ "classpath:sql/series_image_dao_queries.properties" ,
178
+ "classpath:/sql/stamps_catalog_dao_queries.properties"
179
+ })
167
180
/* default */ static class Daos {
168
181
169
182
private final NamedParameterJdbcTemplate jdbcTemplate ;
@@ -174,6 +187,11 @@ public SeriesDao seriesDao() {
174
187
return new JdbcSeriesDao (jdbcTemplate );
175
188
}
176
189
190
+ @ Bean
191
+ public SeriesImageDao seriesImageDao () {
192
+ return new JdbcSeriesImageDao (jdbcTemplate );
193
+ }
194
+
177
195
@ Bean
178
196
public StampsCatalogDao michelCatalogDao () {
179
197
return new JdbcStampsCatalogDao (
0 commit comments