+ Generated foreign key navigation methods
+
+ When using jOOQ's along with its , generated records can have navigation methods contained in them, if properly . These navigation methods allow for "navigating" inbound or outbound foreign key references by executing an appropriate query. An example is given here:
+
+
+
+
+ books = author.fetchBookList();]]>
+
+
+
+ These methods are safe for use with several foreign keys referencing the same tables:
+
+
+
+
+ books = author.fetchBookListByAuthorId();
+List books = coAuthor.fetchBookListByCoAuthorId();]]>
+
+
+
+ Note that, unlike in Hibernate, jOOQ's generated navigation methods will always lazy-fetch relevant records, without caching any results. In other words, every time you run such a fetch method, a new query will be issued.
+
+
+ These fetch methods only work on "attached" records. See the manual's section about for some more insight on "attached" objects.
+
+