Question: Write function in Kotlin Language where I have : MemberPcpSuppressionDTO class: @Table(value = member_pcp_suppression) data class MemberPcpSuppressionDTO( @Id @Column(value = id) var id: String? =
Write function in Kotlin Language where I have :
MemberPcpSuppressionDTO class:
@Table(value = "member_pcp_suppression")
data class MemberPcpSuppressionDTO(
@Id
@Column(value = "id")
var id: String? = null,
@Column(value = "updated_by")
var updatedBy: String? = null,
@Column(value = "updated_on")
var updatedOn: LocalDateTime? = null,
@Column(value = "group_number")
var groupNumber: String? = null,
@Column(value = "plan_variation")
var planVariation: String? = null,
@Column(value = "reporting_code")
var reportingCode: String? = null
)
Database call returns: Flux
I have another method which returns: Mono
fun getMemberPcpSuppressionLoadedCache(): Mono
In this function I have to groupBy MemberPcpSuppressionDTO by groupNumber and store in cache map: fun
Would you help to write this function in Kotlin language
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
