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
When mapping to a class reference, one approach is to throw an exception if not all mapped fields correlate to the fields in the constructor.
data classPersonRecord(
@MappedField
valfirstName:String,
@MappedField
vallastName:String,
@MappedField
valage:Int,
valtel:String
)
data classPersonRecord(
valfirstName:String,
vallastName:String,
valage:Int
)
This requires changing the logic of how we do mapping currently. Instead of mapping right before assignments, we need to prepare all mappings in advance and then attempt to correlate the mapFroms to the constructor argument names. If not all arguments match and no default constructor is available, throw an exception.
The text was updated successfully, but these errors were encountered:
When mapping to a class reference, one approach is to throw an exception if not all mapped fields correlate to the fields in the constructor.
This requires changing the logic of how we do mapping currently. Instead of mapping right before assignments, we need to prepare all mappings in advance and then attempt to correlate the
mapFroms
to the constructor argument names. If not all arguments match and no default constructor is available, throw an exception.The text was updated successfully, but these errors were encountered: