Lets assume i have next entity, and the assignee is a Map<String, Object>
@Getter
@Setter
@Entity(name = "Permission")
public class Permission {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
// It's an enum of whatever values like (TEAM, USER, ..etc)
private PermissionType type;
@Type(type = "jsonb")
@Column(name = "assignee", columnDefinition = "jsonb", nullable = false)
private Map<String, Object> assignee;
}
How can i search or select permissions by assignee key or value using JPQL?
Is that possible?