Your solution would work, provided that the getters and setters are in
the base class "Foo". The methods I'm selecting into are nested, not
simple properties, in the class "Bar".
Here's a better example:
SELECT
baz1 AS "bar.baz1",
baz2 AS "bar.baz2",
column1 AS "test"
FROM
foo
cl
Subject: Nested Beans not populating using SQL alias.
I saw this question had been asked earlier, with no reply, so I'll try
and re-phrase ;-)
I have a nested bean called "Bar", inside of a class "Foo". I am able
to use a Map to populate this bean, IE:
However, when
I saw this question had been asked earlier, with no reply, so I'll try
and re-phrase ;-)
I have a nested bean called "Bar", inside of a class "Foo". I am able
to use a Map to populate this bean, IE:
However, when I use the "equivelant" SQL alias without a map:
SELECT
baz1 AS "bar.baz1",