Fillings
"... but if the tooth has a hole ..." then a filling is inevitable. This is either done directly in the patient's mouth by the dentist or made in the laboratory by the dental technician after an impression (inlay).
For the filling directly in the mouth, either amalgan or a number of plastics are available to the dentist.
The dental technician has either metal (gold) or ceramic to make the inlays.