Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display Data from a Query (Join table)

 
Kaishy Abchi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have been using this code:

Im using netbeans, java application



the query is ok... but I want to print s.supplierName, and Im using MVC arquitecture... this code is in my controller and have to display this in the view...

I know that the problem is in the way that Im print the information... Could someone please help me???


 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kaishy, Welcome to CodeRanch! I've added code tags to your post to make it easier to read.

IT is good that you are using MVC. This means you need to store the values you want to display in an object. You could add supplierName to the batch object. Or you could create a new object containing supplierName and Batch putting that new object in the Collection.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic