You can store a reference to a database table in a variable by using the following type:
`com.mysema.query.sql.RelationalPathBase`
When selecting values of double (int, String, etc.) type in a particular column, you may get the column by index calling `variable.getColumns().get(index)`. Then you need to cast it to the corresponding type like below:
List<Double> resultRows = selectFrom(variable).where( ( (com.mysema.query.types.path.NumberPath<Double>) variable.getColumns().get(1) ).eq(2.0)) .list(( (com.mysema.query.types.path.NumberPath<Double>) variable.getColumns().get(1) ));
not sure it is really necessary in your case but here goes:
You can store a reference to a database table to a variable of the following type:
`com.mysema.query.sql.RelationalPathBase`
When selecting values of double (int, String, etc.) type in a particular column, you may get the column by index calling `variable.getColumns().get(index)`. Then you need to cast it to the corresponding type like below:
`List<Double> resultRows = selectFrom(variable).where(`
`( (com.mysema.query.types.path.NumberPath<Double>) variable.getColumns().get(1) ).eq(2.0))`
`.list(( (com.mysema.query.types.path.NumberPath<Double>) variable.getColumns().get(1) ));`