Hi all,
This is my first experience with Hibernate and I'm reading my first tutorials. My Problem is simple:
"Products" has a "many-to-one" relationship with "Categories" but when I list "Products", I'm getting a "categoryID". How can I replace the "categoryID" by the "categoryName"? I need to display it in a DataGrid.
My Listing code (works perfectly but does not show category name)
ICriteria _criteria = Session.CreateCriteria(typeof(Products),"Products");
ProductsCollection _list = new ProductsCollection(this);
pCriteria.List(_list);
_________________ André Rodrigues Pena
|