3 ms·
> (a) Force the caller to resolve the IDs to actual entities before invoking the method: This doesn't really fix the potential problem you pointed out. All it
by sbov 8y ago
> (a) Force the caller to resolve the IDs to actual entities before invoking the method:
This doesn't really fix the potential problem you pointed out. All it turns it into is this:
> Cart cart = lookupCart(productId);
With the popularity of auto increment, that above code will likely return a valid cart.