????????????Eclipse??????????IDE??IDE?????????????????hashCode()??????equals()??????

??????????????????

????1??????????????????????????????hashCode()??equals()?????????????????????У???????????id??

????2??eqauls???????????£??????????б?????equals??÷???????????

????3???κ??????a.equals(b)?????a.hashCode()?????b.hashCode()????

????4?????????????д??

?????????ORM?????????????

????1??????????ORM?????Щ????????????????hashCode()??equals()?????????getter??setter????????????ó?????????????ORM???е??????????????????????Щ??????е?getter??????????????????????á?

????2??????????????????У???????????e1.id == e2.id???????????????????????????e1.getId() == e2.getId()??????????????