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
|