Hello ! First of all, sorry for my bad English.
I have two Entity A,B
@Entity @Audited public class A { private Long id; private List<B> list; ... @OneToMany(cascade = CascadeType.ALL, fetch = fetchType.Lazy, mappedBy= "a") public List<B> getList() { return list; } ... } @Entity @Audited public class B { private Long id; private A a; ... @ManyToOne(fetch = FetchType.LAZY) @JoinColumn( name = "a_id" ) public A getA() { return a; } ... }
Can i get some old revision of A, and get collections of B by revision of A ?
When i get some revision A (oldA), and call oldA.getList() it returns empty List.
Am i doing somthing wrong or it is the way it works ?
Message was edited by: Егор Колдов