Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 3 | 0 | 1.000 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 43 | src/NHibernate/Event/Default/DefaultLockEventListener.cs |
2 | 2 | 85 | src/NHibernate/Event/Default/DefaultMergeEventListener.cs |
3 | 7 | 36 | src/NHibernate/Event/Default/DefaultReplicateEventListener.cs |
| ||||
IEntityPersister persister = source.GetEntityPersister(@event.EntityName, entity); object id = persister.GetIdentifier(entity, source.EntityMode); |
| ||||
IEntityPersister persister = source.GetEntityPersister(@event.EntityName, entity); object id = persister.GetIdentifier(entity, source.EntityMode); |
| ||||
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); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |