Open grmaciel opened 9 years ago
Could you post your BaseModel
class?
Base Model:
public abstract class BaseModel {
@DatabaseField(
generatedId = true,
allowGeneratedIdInsert = true,
canBeNull = false
)
protected Long id;
@DatabaseField(
canBeNull = true
)
protected Date dataCriacao;
public BaseModel() {
}
public Date getDataCriacao() {
return this.dataCriacao;
}
public void setDataCriacao(Date dataCriacao) {
this.dataCriacao = dataCriacao;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
}
Can you post the complete query code? How is the QueryBuilder used?
I'm doing some join tests and i'm having a join getting the wrong column
Here are my models:
My queryBuilder joins:
This is the sql output from the prepareStatementString
﹕ SELECT
pontovenda
.* FROMpontovenda
INNER JOINcdd
ONpontovenda
.bairro_id
=cdd
.id
Why is he joining a column that does not relate with the Cdd class at all? Am im doing something wrong?
Thank you,