Quote:
In HB2.x, you can't have two objects representing the same row associated with a session at the same time.
I guess you sort of can:)
I have managed to use Lightweight versions of heavywiehgt by using native query to get Lightweight.
My solution is:
1 I have defined
<class name="Lightweight " table="aTable">
</class>
<class name="Heavywiehgt " table="aTable">
</class>
2. use native sql query "select {co.*} from aTable" to get Lightweight
So far it works fine - but still this is workaround.
Does anyone have better idea?