Skip to content
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


This is similar to the "foreign" example, but this shows how to use "foreign collections".

Foreign collections are collections of objects in other tables that match the current
object.  For example, if you have Account and Order objects in your database, the Order
objects may have an associated Account so would have an foreign Account field.  With
foreign objects, the Account can have a Collection of orders that match the account.  See
the documentation for more information:

This example depends on the H2 database which is a native Java SQL implementation.  You
can download the latest jar from the website:

For more examples see:
You can’t perform that action at this time.