public void runTest() { | |
ProductSummaryBean summaryBean = new ProductSummaryBean(19.95, "MyWidget", "Z332332", new DecimalFormat("$#,###,##0.00")); | |
ProductDetailsBean detailBean = getProductDetailsBean(summaryBean); | |
productMap.put(summaryBean, detailBean); | |
//Load the same summaryBean from the DB | |
summaryBean = loadSummaryBean("Z332332"); | |
//Pull the detailBean from the map for the given summaryBean | |
detailBean = productMap.get(summaryBean); | |
System.out.println("DetailBean is: " + detailBean ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment