public virtual void BeforePersist(Net.Vpc.Upa.Record record, Net.Vpc.Upa.Persistence.EntityExecutionContext context) /* throws Net.Vpc.Upa.Exceptions.UPAException */
        {
            //K key = entity.getBuilder().recordToId(record);
            Net.Vpc.Upa.Entity entity = context.GetEntity();
            object             key    = entity.NextId <K>();

            entity.GetBuilder().SetRecordId(record, key);
        }
Beispiel #2
0
 public EntityEvent(Net.Vpc.Upa.Persistence.EntityExecutionContext context, Net.Vpc.Upa.EventPhase phase)
 {
     this.context         = context;
     this.entity          = context.GetEntity();
     this.parent          = entity.GetParent();
     this.persistenceUnit = context.GetPersistenceUnit();
     this.index           = -1;
     this.oldIndex        = -1;
     this.phase           = phase;
 }