public void addMetadata() {
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(4).withSize(10).notNull());
        addMetadata(name, ColumnMetadata.named("name").withIndex(2).ofType(12).withSize(255));
        addMetadata(validTo, ColumnMetadata.named("validTo").withIndex(3).ofType(91).withSize(10));
    }
SDocument is a Querydsl query type for SDocument
querydsl-jpa/src/test/java/com/querydsl/jpa/domain/sql/SDocument.java