Hi,
I'm trying to learn JPA. I created a simple entity class. This entity has 3 columns: ID, NAME, NUMBER_A. It's working fine: I can persist, update and delete without problems.
What I'm trying to do is to create a calculated/computed column. I want to retrieve NUMBER_A, use it to calculate a new value and set the calculated column (let's say CALC_COLUMN).
This calculated column will not be persisted. It's only necessary on runtime.
I tried to create a simple double object and it's getter and setter, but when I run the application, it throws an error telling that column CALC_COLUMN doesn't exist because JPA/EclipseLink is trying to use it as a valid database column (Column 'CALC_COLUMN' is either not in any table in the FROM list...).
So, is it possible to do it?
TIA, Bob