Hello.
I have the following entity in my HBM file:
<join table="v_price_change_current_prices" fetch="join" inverse="true">
<key column="product_color_id" />
<property name="oldMSRP" column="msrp" />
<property name="oldList" column="list" />
</join>
my PRICE_CHANGE table has an ID column (primary key) and a PRODUCT_COLOR_ID column.
I would like the SQL Hibernate produces to join V_PRICE_CHANGE_CURRENT_PRICES to PRICE_CHANGE.PRODUCT_COLOR_ID, like so:
SELECT * from PRICE_CHANGE a, V_PRICE_CHANGE_CURRENT_PRICES b
where a.product_color_id=b.product_color_id
But its joining to PRICE_CHANGE.ID instead
SELECT * from PRICE_CHANGE a, V_PRICE_CHANGE_CURRENT_PRICES b
where a.product_color_id=b.product_color_id
Is there any way to tell the element to to use PRICE_CHANGE.PRODUCT_COLOR_ID instead of PRICE_CHANGE.ID?