Riku
10/19/2020, 6:55 AMreturning(Status.OK, courseLocationsLens to exampleResponse)
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CourseLocations implements Serializable {
private static final long serialVersionUID = 1655656470;
private final Integer id;
private final String building;
private final String room;
public CourseLocations(CourseLocations value) {
this.id = value.id;
this.building = value.building;
this.room = value.room;
}
public CourseLocations(
Integer id,
String building,
String room
) {
this.id = id;
this.building = building;
this.room = room;
}
public Integer getId() {
return this.id;
}
public String getBuilding() {
return this.building;
}
public String getRoom() {
return this.room;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final CourseLocations other = (CourseLocations) obj;
if (id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
return false;
if (building == null) {
if (other.building != null)
return false;
}
else if (!building.equals(other.building))
return false;
if (room == null) {
if (other.room != null)
return false;
}
else if (!room.equals(other.room))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
result = prime * result + ((this.building == null) ? 0 : this.building.hashCode());
result = prime * result + ((this.room == null) ? 0 : this.room.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("CourseLocations (");
sb.append(id);
sb.append(", ").append(building);
sb.append(", ").append(room);
sb.append(")");
return sb.toString();
}
}
s4nchez
10/19/2020, 7:02 AMRiku
10/19/2020, 7:03 AMs4nchez
10/19/2020, 7:09 AMdave
10/19/2020, 7:11 AMRiku
10/19/2020, 7:11 AMdave
10/19/2020, 7:12 AMRiku
10/19/2020, 7:15 AM[{"name":"8-12","category":"AGE_GROUP","createdAt":"2020-09-18T10:03:25.429646"},{"name":"Ballet","category":"DANCE_TYPE","createdAt":"2020-09-18T10:03:25.429646"},{"name":"Kid","category":"AGE_GROUP","createdAt":"2020-10-17T21:39:53.879043"},{"name":"Test","category":"DANCE_LEVEL","createdAt":"2020-10-18T10:39:40.855793"},{"name":"Choreography","category":"SPECIAL_GROUP","createdAt":"2020-10-18T10:40:06.172039"},{"name":"Theatre","category":"UNKNOWN","createdAt":"2020-10-18T10:40:43.99458"}]
dave
10/19/2020, 7:16 AMRiku
10/19/2020, 7:20 AM/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CourseTags implements Serializable {
private static final long serialVersionUID = 1554583580;
private final String name;
private final CourseTagCategory category;
private final LocalDateTime createdAt;
public CourseTags(CourseTags value) {
this.name = value.name;
this.category = value.category;
this.createdAt = value.createdAt;
}
public CourseTags(
String name,
CourseTagCategory category,
LocalDateTime createdAt
) {
this.name = name;
this.category = category;
this.createdAt = createdAt;
}
public String getName() {
return this.name;
}
public CourseTagCategory getCategory() {
return this.category;
}
public LocalDateTime getCreatedAt() {
return this.createdAt;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final CourseTags other = (CourseTags) obj;
if (name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
return false;
if (category == null) {
if (other.category != null)
return false;
}
else if (!category.equals(other.category))
return false;
if (createdAt == null) {
if (other.createdAt != null)
return false;
}
else if (!createdAt.equals(other.createdAt))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
result = prime * result + ((this.category == null) ? 0 : this.category.hashCode());
result = prime * result + ((this.createdAt == null) ? 0 : this.createdAt.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("CourseTags (");
sb.append(name);
sb.append(", ").append(category);
sb.append(", ").append(createdAt);
sb.append(")");
return sb.toString();
}
}
dave
10/19/2020, 7:23 AMRiku
10/19/2020, 7:23 AMBody.auto<List<CourseTags>>().toLens()
returning(OK, courseTagListOutLens to listOf(exampleTag))
dave
10/19/2020, 7:29 AMRiku
10/19/2020, 7:29 AMval exampleTag = CourseTags("Kids", CourseTagCategory.AGE_GROUP, LocalDateTime.now())
dave
10/19/2020, 7:31 AMRazvan
10/19/2020, 11:27 AMdave
10/21/2020, 12:11 AM