querydsl/querydsl-sql/src/test/java/com/mysema/query/QCompanies.java
Timo Westkämper 4739193f03 Integrate ColumnMetadata handling into code generation
Update RelationalPathBase subclasses and tests
2013-10-29 21:53:56 +02:00

51 lines
1.5 KiB
Java

package com.mysema.query;
import static com.mysema.query.types.PathMetadataFactory.forVariable;
import javax.annotation.Generated;
import com.mysema.query.sql.ColumnMetadata;
import com.mysema.query.types.Path;
import com.mysema.query.types.PathMetadata;
import com.mysema.query.types.path.NumberPath;
import com.mysema.query.types.path.StringPath;
/**
* QCompanies is a Querydsl query type for QCompanies
*/
@Generated("com.mysema.query.sql.codegen.MetaDataSerializer")
public class QCompanies extends com.mysema.query.sql.RelationalPathBase<QCompanies> {
private static final long serialVersionUID = 1808918375;
public static final QCompanies companies = new QCompanies("COMPANIES");
public final NumberPath<Long> id = createNumber("id", Long.class);
public final StringPath name = createString("name");
public final com.mysema.query.sql.PrimaryKey<QCompanies> constraint5 = createPrimaryKey(id);
public QCompanies(String variable) {
super(QCompanies.class, forVariable(variable), "PUBLIC", "COMPANIES");
addMetadata();
}
public QCompanies(Path<? extends QCompanies> path) {
super(path.getType(), path.getMetadata(), "PUBLIC", "COMPANIES");
addMetadata();
}
public QCompanies(PathMetadata<?> metadata) {
super(QCompanies.class, metadata, "PUBLIC", "COMPANIES");
addMetadata();
}
protected void addMetadata() {
addMetadata(id, ColumnMetadata.named("ID"));
addMetadata(name, ColumnMetadata.named("NAME"));
}
}