Actions
Task #983
closedCannot create EAV attributes in Sync. mapping with type other than String
Status:
Closed
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Synchronization
Target version:
Start date:
02/23/2018
Due date:
% Done:
100%
Estimated time:
Owner:
Description
When I make new mapping for synchronization for a system (DB system in my case), I successfully create all EAV attributes of Identity of type String. Other types end up with error and I have to create them manually.
Updated by Vít Švanda almost 7 years ago
- Assignee changed from Vít Švanda to Ondřej Kopr
- Target version set to Hematite (8.0.0)
Updated by Ondřej Kopr almost 7 years ago
- Status changed from New to In Progress
Updated by Ondřej Kopr almost 7 years ago
javax.validation.ConstraintViolationException: Validation failed for [IdmFormAttributeDto], errors [[ConstraintViolationImpl{interpolatedMessage='nesmí být null', propertyPath=persistentType, rootBeanClass=class eu.bcvsolutions.idm.core.eav.api.dto.IdmFormAttributeDto, messageTemplate='{javax.validation.constraints.NotNull.message}'}]] at eu.bcvsolutions.idm.core.api.service.AbstractReadWriteDtoService.validate(AbstractReadWriteDtoService.java:181) at eu.bcvsolutions.idm.core.api.service.AbstractReadWriteDtoService.validateDto(AbstractReadWriteDtoService.java:153) at eu.bcvsolutions.idm.core.api.service.AbstractReadWriteDtoService.saveInternal(AbstractReadWriteDtoService.java:78) at eu.bcvsolutions.idm.core.eav.service.impl.DefaultIdmFormAttributeService.saveInternal(DefaultIdmFormAttributeService.java:79) at eu.bcvsolutions.idm.core.eav.service.impl.DefaultIdmFormAttributeService.saveInternal(DefaultIdmFormAttributeService.java:1) at eu.bcvsolutions.idm.core.api.service.AbstractReadWriteDtoService.save(AbstractReadWriteDtoService.java:71) at eu.bcvsolutions.idm.core.api.service.AbstractReadWriteDtoService$$FastClassBySpringCGLIB$$f52da88.invoke(<generated>)
Updated by Ondřej Kopr almost 7 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Marcel Poul
- % Done changed from 0 to 90
I added these new types for form converter:
- java.lang.Long,
- java.math.BigDecimal,
- java.lang.Double,
- double.
Test are included
commit: https://github.com/bcvsolutions/CzechIdMng/commit/0a917bfbde9bfe52d8f281db4b753308caa4d254
Marcel please could you check new behavior? Thank you.
Updated by Radek Tomiška over 6 years ago
- Assignee changed from Marcel Poul to Vít Švanda
Updated by Vít Švanda over 6 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Vít Švanda to Ondřej Kopr
- % Done changed from 90 to 100
I did review. Works fine. Nice test.
- I extended also converter 'IntFormPropertyConverter' for 'java.lang.Integer' yet.
- I extended your test for Integer too.
Actions