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.
All right, so this may not be a question directly related to the book but maybe someone knows a good OO recipe for the following problem: My object persists it's data in several db tables. Each of these tables has change user, change date, and change time information kept in separate fields. The problem is, when I retrieve the data for display, I have to display only one set of the change information fields, i.e. the most recent one made. Since the number of tables that the data is being stored may change over time, I would like to make the test for which change is the most recent. What is the best way to do this with java.sql.Date and java.sql.Time? Thanks in advance, Junilu