ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Hibernate Your Data
Subject:   Why fields "productId" and "orderId" in OrderItem?
Date:   2004-01-16 00:58:50
From:   anonymous2
Response to: Why fields "productId" and "orderId" in OrderItem?

Hi,


Those fields are there just to make more clear what my intention was. Of course, you can replace them with product.getId() in OrderItem#getProductId() method, as shown in the example.


Regards,
Davor