Hi,
I am new to hibernate.
I am facing some problem in creating one-to-one relationship bidirectional.
In my scenario, I have 2 tables named Basket_item and Special_Price_Request.
both tables are 1:1 mapped and PK of Basket_Item is FK in Special_Price_Request, that is Basket_Item is Parent table and Special_Price_Request is child table
In existing solution , I can get the SpecialPriceRequestDO by calling custom finder method that is findByBasketItemFid() on SpecialPriceRequestDAO.
Now I have to change it to get SpecialPriceRequestDO by calling getSpecialPriceRequest() on BasketItemDO.
How should I approach to this ?
Please give me pointer in this direction.
Thanks in advance.
Tushar Gorde
_________________ Tushar Gorde
IBM India Pvt Ltd.
Hyderabad - India
|