The user can ask for: give me the situation of Quote#12345 between 2011/01/01 and 2011/02/28. (#12345 is the ID)
Then you can ask for all REV between 2011/01/01 and 2011/02/28 and then you can show the whole Quote#12345 graph history. On Tue, Mar 15, 2011 at 6:50 AM, Chris Richards < [email protected]> wrote: > I was thinking of how best to allow an end user to view the history of > changes, and I think it would be best to show or access this via the > parent entity. As suggested in the link Roger gave, a better solution > would be to be able to get all the revisions for a parent entity and > its child entities in a single query. So you could have something > like: > > auditReader.GetRevisions<Quote>(quoteId, q => q.Details); > > which would return the revisions for a Quote and all the revisions for > the associated QuoteDetails. > > Would it be possible to implement this using an AuditQuery? > > Chris > > On Mar 14, 6:44 pm, Roger Kratz <[email protected]> wrote: > > Chris, > > > > Without knowing why you want this, maybe this threadhttp:// > community.jboss.org/message/567412(the thread is true also for NHibernate > Envers) can give you some understanding about this. > > > > /Roger > > > > ________________________________ > > Från: [email protected] [[email protected]] för Fabio > Maulo [[email protected]] > > Skickat: den 14 mars 2011 18:54 > > Till: [email protected] > > Ämne: Re: [nhusers] Envers and parent / child relationship > > > > Envers is not about "single entity version", it is about "whole domain > state version". > > The REV in Envers is like the revision in SVN. > > A revision is about the state of the whole domain under audit. > > > > On Mon, Mar 14, 2011 at 1:08 PM, Chris Richards < > [email protected]<mailto: > [email protected]>> wrote: > > Using Envers, if I have a parent / child relationship is it possible > > to up the version of the parent entity if a property on a child entity > > is modified? For example, if I had a Quote parent entity with a > > collection of QuoteDetail child entities, when a property on a > > QuoteDetail is modified then both QuoteDetail and the parent Quote > > have their revision number updated. > > > > -- > > You received this message because you are subscribed to the Google Groups > "nhusers" group. > > To post to this group, send email to [email protected]<mailto: > [email protected]>. > > To unsubscribe from this group, send email to > [email protected]<mailto: > nhusers%2Bunsubscribe@googlegro ups.com>. > > For more options, visit this group athttp:// > groups.google.com/group/nhusers?hl=en. > > > > -- > > Fabio Maulo > > > > -- > > 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 athttp:// > groups.google.com/group/nhusers?hl=en. > > -- > 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. > > -- Fabio Maulo -- 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.
