Skip to content

Commit

Permalink
Support service method result with generics cuba-platform/cuba#3176
Browse files Browse the repository at this point in the history
  • Loading branch information
andreysubbotin committed Aug 11, 2021
1 parent d84e43f commit e139c2c
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public class Car extends CategorizedEntity implements Versioned, Creatable, Upda
@Column(name = "VIN")
private String vin;

@Column(name = "SEGMENT")
private Character segment;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "COLOUR_ID")
private Colour colour;
Expand Down Expand Up @@ -204,6 +207,14 @@ public void setVin(String vin) {
this.vin = vin;
}

public Character getSegment() {
return segment;
}

public void setSegment(Character segment) {
this.segment = segment;
}

public Colour getColour() {
return colour;
}
Expand Down

0 comments on commit e139c2c

Please sign in to comment.