I need a bit more info - specifically I'd need the original database you're feeding into EntityGenerator. Is there an explicitly defined foreign key in the database between the fields you want the reference on?