Write commit in BaseEntity