-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Populate not mapped properties inside a domain object
PostPosted: Fri Sep 21, 2007 1:15 pm 
Newbie

Joined: Fri Sep 21, 2007 12:51 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.