CloneSet1074


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2301.000statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1243
src/NHibernate/Event/Default/DefaultLockEventListener.cs
2285
src/NHibernate/Event/Default/DefaultMergeEventListener.cs
3736
src/NHibernate/Event/Default/DefaultReplicateEventListener.cs
Clone Instance
1
Line Count
2
Source Line
43
Source File
src/NHibernate/Event/Default/DefaultLockEventListener.cs

                                IEntityPersister persister = source.GetEntityPersister(@event.EntityName, entity);
                                object id = persister.GetIdentifier(entity, source.EntityMode);


Clone Instance
2
Line Count
2
Source Line
85
Source File
src/NHibernate/Event/Default/DefaultMergeEventListener.cs

                                                IEntityPersister persister = source.GetEntityPersister(@event.EntityName, entity);
                                                object id = persister.GetIdentifier(entity, source.EntityMode);


Clone Instance
3
Line Count
7
Source Line
36
Source File
src/NHibernate/Event/Default/DefaultReplicateEventListener.cs

                        IEntityPersister persister = source.GetEntityPersister(@event.EntityName, entity);

                        // get the id from the object
                        /*if ( persister.isUnsaved(entity, source) ) {
                        throw new TransientObjectException("transient instance passed to replicate()");
                        }*/
                        object id = persister.GetIdentifier(entity, source.EntityMode);


Clone AbstractionParameter Count: 0Parameter Bindings

IEntityPersister persister = source.GetEntityPersister(@event.EntityName, entity);
// get the id from the object
/*if ( persister.isUnsaved(entity, source) ) {
                        throw new TransientObjectException("transient instance passed to replicate()");
                        }*/
object id = persister.GetIdentifier(entity, source.EntityMode);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None