Hibernate version: 3.2.4.sp1
Hello,
is it possible to populate properties in a domain object that are not mapped ?
e.g
We have a query
Code:
select klasse,
ktion1.bezugText as notMappedProp1,
ktion2.bezugText as notMappedProp2
from BzaKlasse klasse, BzaKlassification ktion1,
BzaKlassification ktion2
where klasse.werk.werk = ?
and ((klasse.bezugNichtRohteil = ktion1.bezug) or
(klasse.bezugNichtRohteil is null and ktion1.bezug is null ))
and ((klasse.bezugRohteil = ktion2.bezug) or
(klasse.bezugRohteil is null and ktion2.bezug is null ))
and (klasse.bezugNichtRohteil is null or klasse.bezugRohteil is
null)
that gives us a list of object arrays each holding the klasse and the two extra selected properties. Is it possible to place the selected propertiy values from notMappedProp1 and notMappedProp2 into their corresponding fields insinde the domain object.
thanks
Z