added defaults property to BaseEntity