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 below:

fun getMemberPcpSuppressionLoadedCache(): Mono

In this function I have to groupBy MemberPcpSuppressionDTO by groupNumber and store in cache map: fun batchUpdateGuavaCache(cacheMap: Map): Mono

Would you help to write this function in Kotlin language

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!