I have a question. If I want to display on start in h:inputText a "default value" should i do second getter with default value? for ex.: my entity has field:
private int yellowCards;
public int getYellowCards() {
return yellowCards;
}
public void setYellowCards(int yellowCards) {
this.yellowCards += yellowCards;
}
in db there is 3 yellow cards. Now I want to add another stats for this Entity - next yellow card. but I don't want to have in inputText on view "3" but default "0". Is there something way to set "default" value of this field or only add second getter for this view?(because in other view i need to use this first getter to display all stats).