Andy,
Thanks for the response. I am working on a billing application, so I have the following hierarchy Master Invoice -> Sub Invoice -> Sub Invoice Detail. Having a Sub Invoice Detail item doesn't make sense without having a parent or grand parent in my case. In the system most bills are imorted without any user interaction, but there are cases where the users need to manually enter the bills. To do this we create a copy of last months bill for the user to edit. Usually these bills don't consist of more than 100 records at the most, so generally speaking we won't be saving more than 100 records at a time.
We are using Oracle so the direct connection is not an option. I don't mind that the save will take 1 minute or so to complete, but i would like to give the user a status on how the save is doing. We are not using remoting nor is there any intention to do so in the future. So I was thinking we could just raise an event when saving form the invoice class. Would there be any negative performance impacts of this?
Also in your solution when you built 3000 sql statements to send at once how did you check the results? I will also need to get the id of the detail object being saved, so I don't think this approach would work for me, but I would like to know for the future.
Thanks,
Mike
It doesn't make sense to have a sub invoice detail item without an invoice, I agree. However, it may make sense to edit a sub invoice detail outside the context of a sub invoice. Does that make sense? In other words, you may create a sub invoice detail by passing a sub invoice to the factory creation method.mr_lasseter:Thanks for the response. I am working on a billing application, so I have the following hierarchy Master Invoice -> Sub Invoice -> Sub Invoice Detail. Having a Sub Invoice Detail item doesn't make sense without having a parent or grand parent in my case.
Even still, the connection would be to a local machine, and thus nothing would go across the network.mr_lasseter:We are using Oracle so the direct connection is not an option.
This is a tough one, because I'm not sure of any method that would allow you to use remoting in the future. Never say never. At some point you may have to switch to remoting to scale your application. Raising an event would slow things, as the event has to process before your code continues, unless you're on different threads and raise the event asynchronisly... which I'm not sure is possible?mr_lasseter:I don't mind that the save will take 1 minute or so to complete, but i would like to give the user a status on how the save is doing.
As I said, it would be a lot of work. We weren't doing Csla, and our BOs were more data objects than real business objects.. for this we also threw away the objects once the save was completed, because the code ended up running in a service. You'd have to figure out a way to process updates once you got everything back. It wouldn't be fun..mr_lasseter:Also in your solution when you built 3000 sql statements to send at once how did you check the results? I will also need to get the id of the detail object being saved, so I don't think this approach would work for me, but I would like to know for the future.
Copyright (c) Marimer LLC