Код: Выделить всё
@Data
@Entity
@TypeDef(name = "json", typeClass = JsonStringType.class)
public class Booking {
@Id
@GeneratedValue(generator = "uuid2")
@GenericGenerator(name = "uuid2", strategy = "uuid2")
@Column(name = "id", nullable = false, columnDefinition = "VARCHAR(36)")
private String id;
@Column(name = "office_type")
private OfficeType officeType;
Код: Выделить всё
List bookingList = bookingRepository.findByStatus(Status.APPROVED);
Map officeTypeMap = new HashMap();
Подробнее здесь: https://stackoverflow.com/questions/741 ... ct-in-java