FetchMode « Composite « JPA Q&A





1. FetchMode + complex composite key    forum.hibernate.org

Hi there, I am having trouble with criteria.setFetchMode(String s, FetchMode f). Namely, it seems to be ignored if I try to setFetchMode JOIN to an element of the primary key. Situation is like this: Code: public class AAA{ @EmbeddedId private AAAKey aaaKey = new AAAKey(); public static class AAAKey(){ @ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE}, ...