Update entity.java