• 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
Sheriff
Posts: 36007
422
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!