Register / Login
Win a copy of
The Little Book of Impediments (e-book only)
this week in the
Agile and Other Processes
Object Relational Mapping
Should I use one to many relationship for this case between Cart and Products?
posted 1 year ago
I use one to many relationship for the below case between Cart and Products:
I am implementing a shopping cart where user will add products to his shopping cart.
Also on clicking 'show cart' option the products in the cart will be listed. Which of the following ways should I use:
Do not use any one to many mapping between cart and products table. And on click of 'show cart' button use HQL query such as "from Cart where cart id=
Use one to many mapping between cart and products and get get items using the getCartProducts method?
Why doesn't exercise 8-1 from Murach's Java Servlets work for me on IE7?
How To Convert a Servlet File to a JSP File
Unable to redirect the page through dispatcher
Communication between jFrames
Help in HQL