Re: [hibernate-dev] Hibernate Envers > link between to auditable entities

2016-09-01 Thread Chris Cranford
Tarek - See inline. On 09/01/2016 10:11 AM, Dev Stack wrote: > Hi Chris, > > Thank you for your answer. > > 1) yes, we can use Set<> > 2) When we load an offer we have to load also the associated product. > So, we have to keep the link from offer to product. > the link from product to offer is no

Re: [hibernate-dev] Hibernate Envers > link between to auditable entities

2016-09-01 Thread Dev Stack
Hi Chris, Thank you for your answer. 1) yes, we can use Set<> 2) When we load an offer we have to load also the associated product. So, we have to keep the link from offer to product. the link from product to offer is not needed for now. Thanks, Tarek 2016-09-01 15:55 GMT+02:00 Chris Cranford :

Re: [hibernate-dev] Hibernate Envers > link between to auditable entities

2016-09-01 Thread Chris Cranford
Tarek - There are a few ways we can tackle what you want all within the scope of Envers, but some of it highly depends upon details specific to the relationship between Product (P) and Offer (O). 1. What is the collection type used in Product for the related offers? If this happens to be a

[hibernate-dev] Hibernate Envers > link between to auditable entities

2016-09-01 Thread Dev Stack
Hello, we have in our model entity P (product) and entity O (offer). The two entities have a link. one instance of P can have one or many O instances. an instance O has a reference to only one instance of P. The link is managed in the O side. P and O are revisioned by Hibernate Envers. Two use c