Yes, so if you had a list of Milk objects, you could use a property
expression "honey.honeyName."  Nested property expressions work.

On Sun, Jan 10, 2010 at 10:31 AM, Ivan Dudko <[email protected]> wrote:
> James, You mean this?
>
> class Milk {
> int id;
> String milkName;
> Honey honey;
> // getters and setters
> }
>
> class Honey {
> int id;
> String honeyName;
> // getters and setters
> }
>
> 2010/1/10 James Carman <[email protected]>:
>> Can you "traverse" from Milk to Honey (or vise-versa)?  If so, then
>> just use a nested property expression (like "honey.hiveName" or
>> whatever).
>>
>> On Sun, Jan 10, 2010 at 9:51 AM, Ivan Dudko <[email protected]> wrote:
>>> I have two Pojo classes. For example, Milk and Honey.
>>> And also database tables with same structure. I am do not use ORM mapping.
>>>
>>> I write DAO class for class Milk that fetches data from the tables
>>> milk and honey at once.
>>> But i am in trouble how i can display this result set.
>>>
>>> I think that writing third Pojo MilkHoney for displaying this data is
>>> bad idea...
>>>
>>> Thank you!
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to