My aim is to use a discriminator on the basis of field bid_item_type_id to determine which table to join to, to retrieve date using the implicit foreign key in bid_item_id. Is this possible using disciminator in hibernate? If so, can someone please help?!
Code:
Table Structure:
Field Type
bid_id bigint(20) NOT NULL
bid_bill_id bigint(20) NOT NULL
bid_item_id bigint(20) NULL
bid_item_type_id bigint(20) NOT NULL
bid_disc_amt double NULL
bid_is_disc_in_percent tinyint(1) NULL
bid_qty decimal(10,0) NULL
bid_total_amt double NULL