This will work for group by resultmaps ?
A vote is not an int, a vote is a object.
A stakeholder object holds a list of vote objects. Do you mean just
changing all my basic accessors to use objects instead of primitives for
this to work ?
- Eric
Sven Boden wrote:
Use Integer instead of int in your domain objects, Float instead
float, ...
Regards,
Sven
Eric Bauld wrote:
I am trying to get a query to run that has the following
Get a list of stakeholders
Each stakeholder can have many votes
I want all stakeholders even if they do not have a vote.
I have the query done and will get all stakeholders and all of their
votes loaded properly. But if a stakeholder has no votes ibatis
explodes because it cannot assign any votes to that stakeholder. How
can I get around these null values and have it build a stakeholder
object and not load it with votes ?
- Eric