@PostLoad
    @PostPersist
    @PostUpdate
    @PostRemove
    private void init() {
        if (this.internalPortletDefinitionId != -1
                && (this.portletDefinitionId == null
                        || this.portletDefinitionId.getLongId()
                                != this.internalPortletDefinitionId)) {
            this.portletDefinitionId =
                    PortletDefinitionIdImpl.create(this.internalPortletDefinitionId);
        }
    }
@ PostLoad @ PostPersist @ PostUpdate @ PostRemove private void init ( ) { if ( this . internalPortletDefinitionId != - 1 && ( this . portletDefinitionId == null || this . portletDefinitionId . getLongId ( ) != this . internalPortletDefinitionId ) ) { this . portletDefinitionId = PortletDefinitionIdImpl . create ( this . internalPortletDefinitionId ) ; } }
Used to initialize fields after persistence actions.