How the values are set to the POJO classes?

124 views Asked by At

damagestockBean.getDamage_invoice_no() refers to a getter method in a POJO class which looks like

public String getDamage_invoice_no() {
        return damage_invoice_no;
    }

I know that the corresponding damage_invoice_no variable was set by using a setter method.

public void setDamage_invoice_no(String damage_invoice_no) {
        this.damage_invoice_no = damage_invoice_no;
    }

But I don't know from where the above setDamage_invoice_no is called. Is there any simple way to find the caller?

1

There are 1 answers

2
Laurentiu L. On BEST ANSWER

Using an IDE(Integrated Development Environment) can help you find usages in code. Example: Intellij IDEA - default keymapping is Alt+F7.

In Netbeans it's alt+u. Usually when you right click a method name in the IDE the find usages option should appear.

You can also use a file manager such as total commander for a quick search function within a directory where you look for setDamage_invoice_no.