ADF ViewObject query selects values into wrong attributes?

Problem
   In the view object result set value of particular attribute has wrong value. It belongs to another attribute of the same view object, usually to previous one in the sequence.

Solution
   Each view object attribute has property "Selected in query". It must be selected if attribute is fetched using SQL query. If it is not selected and is available in query, value is fetched into next attribute (wrong one) which has property "Selected in query" as true;