Bu benim geçen gün düşünüyordum şeydir.
Ben bir tek benzeri bir nesne istiyorum. Bunun yerine bir sınıfın tek bir örneği, ben eşleşen değişkeni ile tek bir nesne istiyorum.
Örneğin.
an existing employee object has a employee_id = 100 the getEmployee static method is called with employee_id = 100, i want to return the already existing object with the matching employee_id or create it if it does not exist.
Bu yapılabilir?
Teşekkürler