Feature #527
openAutomatic basic type conversion for acc
70%
Description
This is a feature suggestion:
Perform automatic type conversion for basic types. For example I have a form attribute of type Long and resource attribute of type String. When I perform provisioning or sync, it fails with "Form value [2037] for attribute [idPerson] has to be type of [LONG], given [java.lang.String]" (or similar for provisioning). Now it is required to do the conversion in transform to/from. Idea is to perform the conversion automatically for basic datatypes.
Related issues
Updated by Radek Tomiška over 7 years ago
- Category changed from Provisioning to Eav
- Target version set to Diamond (7.4.0)
This feature can be dangerous and will do some "black magic". We need to talk about it before implementation. Possible solution: https://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert-Spring-config.
Updated by Vít Švanda about 7 years ago
- Target version deleted (
Diamond (7.4.0))
Updated by Radek Tomiška over 6 years ago
- Related to Task #1076: Add JodaTime to DATE and DATETIME types of EAV added
Updated by Radek Tomiška over 6 years ago
- % Done changed from 0 to 70
In ticket #1076 was added default conversion from string to almost all persistent types instead:
- DOUBLE - here can be different number separator (.,) - depends on locale
- BYTEARRAY - not implemented now