0

There is two table Transactions and ResponseCode

enter image description here

I want to write hibernate 5.2 code without using HQL so that it generate this kind of select bellow

SELECT t.tranType
      ,t.tranId
      ,t.requestDate
      ,t.rcCode
      ,t.tranAmount
      ,r.description
      ,r.status
  FROM transactions t
  LEFT OUTER JOIN responseCode r
    ON t.rcCode = r.rcCode
   AND (r.lang = 'en')
 WHERE (t.merchant_id =5 )

Please, let me know how to join this two table using hibernate annotations in table @Entities so, that transactions table one record join to ResponseCode table one record

JiboOne
  • 1,438
  • 4
  • 22
  • 55

0 Answers0