I'm trying to develop a method for using a SQL
pure, fetch just the required fields from my query
and finally, already bring the object already mapped.
In case the object would be PropostaCartao
and inside it would have another called Filial
. I would like to know how to SQL
to bring the id
of the PropostaCartao
and the id
of the Filial
and indicate that both are of type Long
using the Scalar
resource because the field is of type Long.
So, I'd like to know how to query
and method to popular id
PropostaCartao
and id
Filial
.
Thank you