You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently AgObjectId is allowed to contain values of the wrong type (not exactly matching the model attribute). Type conversion happens in asMap(AgEntity) method. There are a few problems with the current implementation:
Performance - Value conversion happens during consumption phase, hence may happen multiple times in different places.
Inconsistency: Ag.asMap(AgEntity) does conversion, Ag.get(String) does not
AgObjectId API is hard to use - it requires entity context to access ID.
AgObjectId can't be used as a map key because its internal state is not normalized.
Normalizer is very basic. Only has Number to Long converter (I guess this means most of the time people provide the correct values, and this is not a huge issue).
All of the above (except maybe the last item) points to the need to do normalization of values at the point of id creation.
The only test for normalizer use is PUT_IT.testSingle_LongId_Small(.)
The text was updated successfully, but these errors were encountered:
Currently AgObjectId is allowed to contain values of the wrong type (not exactly matching the model attribute). Type conversion happens in
asMap(AgEntity)
method. There are a few problems with the current implementation:Ag.asMap(AgEntity)
does conversion,Ag.get(String)
does notAll of the above (except maybe the last item) points to the need to do normalization of values at the point of id creation.
The only test for normalizer use is
PUT_IT.testSingle_LongId_Small(.)
The text was updated successfully, but these errors were encountered: