Superconductivity and ferromagnetism in hybrid systems