Infer association classes