bug fixes

This commit is contained in:
Efstratios Giannopoulos 2023-11-30 13:38:36 +02:00
parent 2d5c9df855
commit 3a70b4d700
2 changed files with 8 additions and 6 deletions

View File

@ -1,8 +1,10 @@
package eu.eudat.model.builder.descriptiontemplatedefinition.fielddata;
import eu.eudat.commons.types.descriptiontemplate.fielddata.DataRepositoryDataEntity;
import eu.eudat.commons.types.descriptiontemplate.fielddata.JournalRepositoryDataEntity;
import eu.eudat.convention.ConventionService;
import eu.eudat.model.descriptiontemplatedefinition.fielddata.DataRepositoryData;
import eu.eudat.model.descriptiontemplatedefinition.fielddata.JournalRepositoryData;
import gr.cite.tools.fieldset.FieldSet;
import gr.cite.tools.logging.LoggerService;
import org.slf4j.LoggerFactory;
@ -13,19 +15,19 @@ import org.springframework.stereotype.Component;
@Component
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class JournalRepositoryDataBuilder extends BaseFieldDataBuilder<DataRepositoryData, DataRepositoryDataEntity> {
public class JournalRepositoryDataBuilder extends BaseFieldDataBuilder<JournalRepositoryData, JournalRepositoryDataEntity> {
@Autowired
public JournalRepositoryDataBuilder(ConventionService conventionService) {
super(conventionService, new LoggerService(LoggerFactory.getLogger(JournalRepositoryDataBuilder.class)));
}
protected DataRepositoryData getInstance() {
return new DataRepositoryData();
protected JournalRepositoryData getInstance() {
return new JournalRepositoryData();
}
@Override
protected void buildChild(FieldSet fields, DataRepositoryDataEntity d, DataRepositoryData m) {
if (fields.hasField(this.asIndexer(DataRepositoryData._multiAutoComplete))) m.setMultiAutoComplete(d.getMultiAutoComplete());
protected void buildChild(FieldSet fields, JournalRepositoryDataEntity d, JournalRepositoryData m) {
if (fields.hasField(this.asIndexer(JournalRepositoryData._multiAutoComplete))) m.setMultiAutoComplete(d.getMultiAutoComplete());
}
}

View File

@ -111,7 +111,7 @@ public class FieldDataHelperServiceProvider {
break;
}
case WORD_LIST: {
item = this.applicationContext.getBean(ValidationFieldDataHelperService.class);
item = this.applicationContext.getBean(WordListFieldDataHelperService.class);
break;
}
case AUTO_COMPLETE: {