OK, tried the UserType approach and managed to map and cache the property. I still have a couple of questions though. As I mentioned earlier the property value is received using a RPG program call and therefore is NOT related to any table / column.
To be able to map the property anyway I used the following line in my mapping file:
Code:
<class name="Consultant" table="csstrlp" mutable="false">
...
<property name="salesData" type="SalesDataType" column="sdlanr" update="false" insert="false"/>
...
</class>
The column is an existing column which is used to receive another value. I just set insert and update to false to be able to reuse this column. Although this works it still looks like a little hack to me... Is there another way on doing this or is this the right and only one?
Also (and even more important) I'm wondering whether it is possible to define a 'per property cache'. Most properties of the Consultant class hardly ever change and therefore can be cached for a long time without the need for refreshing. SalesData, however, is different. It changes quite often and I would like to use a different cache strategy than for the Consultant entities (e.g refresh it every 15min instead of once a day).
I hope I could make my problem clear and would be really grateful if you could help me with this last question. Once again... thanks alot for you help :) !