How can I join two tables using JPA?

Forums SQLHow can I join two tables using JPA?
Staff asked 2 years ago

Answers (1)

Add Answer
Umang Ramani Marked As Accepted
Staff answered 2 years ago
SELECT m.medicineId ,m.medicineName ,m.inStock ,m.lifetimeSupply, m.lifetimeSales, m.howToUse, m.sideSffects , mg.groupName 
FROM medicine m join m.medicineGroup mg;

 

Subscribe

Select Categories