ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Bauld <bau...@cpsc.ucalgary.ca>
Subject Re: Is there a way to use right and left joins in a N+1 ?
Date Tue, 30 May 2006 02:10:06 GMT
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
>>
>>


Mime
View raw message