automatically setting up join classes when defining contexts, to make setting up associations easier