isn't that what validation is for? if the entity is not valid, rollback transaction and inform user of broken rules. the validation is the test. no need for fake entities.
On Oct 8, 8:38 am, kork <[email protected]> wrote: > it's a bit complicate, i use the temporary entity to enable the user > to do a "test" before saving it (when saving i will "clone" the > temporary object and save a new clean > enity with an unitialized id). > > to make the test works i need to put the temp entity into a collection > with other alredy saved entities, than i make same works and then i > will remove the temp entity using the id so i need that the identifier > is set to an unique id (the collection is unique and there's the > chance that more users make a test at the same time so i can't use a > "special" id value to remove the temp entity from collection becouse > the temp entities can be also 2 or more) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
