Uninstalled STS from Eclipse and it doesn't check for mismatching types for @Id field and ObjectId anymore.