Bnjr,
j'ai une base de donnée relationnelle (MySql) dont 2 table :
Code:
| CategorieProduit
-------------------
| Id
| Libelle
| Produit
---------------
| Id
| Designation
| Categorie
je fait des test sur Hibernate pour lister les tables et la Maj meme ca roule , Mais mon prb .
je cherche comment lancer une requette HQL qui p me lister les produit avec leur categorie (Jointure * à 1) N.B : avec le SQL standards c :
Code:
SELECT Produit.Id, Produit.Designation, CategorieProduit.Libelle
FROM CategorieProduit INNER JOIN Produit ON CategorieProduit.Id = Produit.Categorie;
Mais avec HQL j'arrieve po a trouver un exemple opérationnel ?!!!!
et Merci