@Entity
@Table
public class Page {
...
private String URL;
public void setURL(String URL) {
this.URL = URL;
}
public String getURL() {
return URL
}
}
The URL is mapped to one field in a table. I set a break point in setURL() method, but the program doesn't break when debugging; then I changed the break point to getURL() method, the break point was triggered.
Does this mean that the setURL method isn't used or triggered at all? The front view doesn't accept user's input as URL value, and the URL is retrieved from database. If that's the case, do I need the setURL() method at all?