If I ever get carpal tunnel, I’m going to blame it on choosing Java as my weapon of choice. What was once a beautiful and enjoyable language has become nothing short of a nightmare. Java programmers should be protesting loudly at this point, I have no idea why we aren’t. Until we get our acts together I guess the word “company” will have to be spelled:
private Company company; @ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = “company_id”, nullable = false)
public Company getCompany() {
return this.company;
} public void setCompany(Company company) {
this.company = company;
}
@JoinColumn(name = “company_id”, nullable = false)
public Company getCompany() {
return this.company;
} public void setCompany(Company company) {
this.company = company;
}
Don’t get me wrong… I’m glad the Java community still agrees that we shouldn’t write the push, pop and mov instructions for those getters and setters too. But come on, does anyone really think that is the best we can do?
COMMENTS