Share entity : implementation of life cycle callback to handle createdAt