Write this base class once and every entity gets an Id for free. If you implement equals and hashcode as above you also throw that one in as a bonus. UUID ...
確定! 回上一頁