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.  [ 2 posts ] 
Author Message
 Post subject: Accessing "virtual" properties in a select stateme
PostPosted: Wed Aug 24, 2005 11:09 am 
Newbie

Joined: Wed Aug 24, 2005 9:02 am
Posts: 15
Hello. I have the following problem:

in a SQL Statement "SELECT ..., 1 AS userCompanyID FROM Companies" i want to access the "virtual" Property userCompanyID and its value 1. "userCompanyID" doesnt exist as a column in my Companies-Table and should be readable from my Dataobject CompanyData (which is mapped to the Companies-Table)

Hibernate argues that the column of my virtual property "userCompanyID" doesnt exist in the Companies-Table (and thats correct), but how do i access it anyways ?

Please help

thx

tvh


Top
 Profile  
 
 Post subject: simple solution !
PostPosted: Wed Aug 24, 2005 11:15 am 
Newbie

Joined: Wed Aug 24, 2005 9:02 am
Posts: 15
use a constant property in oyur data object :-)


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

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.