Mapping a Long field in UserDTO to a Long field in the createdBy field of User using ModelMapper
The roleId from the UserDTO is getting correctly mapped to the role object’s ID in the User class but the same is not happening for createdBy, it’s showing as null