If I use JPA and Vaadin 10 Grid, it adds all the columns in an arbitrary order to the display.
grid = new Grid<>(Thing.class);
add(grid);
How do I make it add just one or two columns, and have control over the order, sizing, widths, etc.
My 'thing' looks like
@Entity
public class Thing {
private static final Logger log = LoggerFactory.getLogger(Thing.class);
@Id
@GeneratedValue
@Column(unique = true)
private Long id;
@Column(nullable = false, updatable = false)
@CreationTimestamp
private Instant creationDate;
...
Is there an annotation I should be using, or do I need to hide columns, or remove all the columns and add them manually? I've search online and here on SO and found nothing that seems to be related.