Generate entity getter and setter, add haslifecyclecallback