This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm trying to get info from a database using only the primary key. When someone presses a link in a page, he/she goes to the next page and the primary key is stored in a bean. Then I can display the primary key but I don't know how to display all the other info but the primary key. here is some of my code:
code for the next page:
in the wsdlBekijkenwsdl bean there is alse a set/get methode for the name and some more and I want to display them as well. Now is my question, can I get the other info from the database and display it?
How do you get your primary key? Do you get it from your database, or do you get if from another source. If you get it from your database, you already know how to access that database. In the other case, you probably need some persistence framework to access your database. JPA is a good choice, with several implementations available (Hibernate, EclipseLink, and others...)