Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 2 | 0.989 | statement_list[11] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 209 | src/NHibernate.Test/HQL/Ast/BulkManipulation.cs |
2 | 17 | 257 | src/NHibernate.Test/HQL/Ast/BulkManipulation.cs |
| ||||
// Make sure the env supports bulk inserts with generated ids... IEntityPersister persister = sessions.GetEntityPersister( typeof( IntegerVersioned).FullName); IIdentifierGenerator generator = persister.IdentifierGenerator; if ( !HqlSqlWalker.SupportsIdGenWithBulkInsertion(generator)) { return; } ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); var entity = new IntegerVersioned { Name = "int-vers" } ; s.Save(entity); s.CreateQuery("select id, name, version from IntegerVersioned").List(); t.Commit(); s.Close(); long initialId = entity.Id; |
| ||||
// Make sure the env supports bulk inserts with generated ids... IEntityPersister persister = sessions.GetEntityPersister( typeof( TimestampVersioned).FullName); IIdentifierGenerator generator = persister.IdentifierGenerator; if ( !HqlSqlWalker.SupportsIdGenWithBulkInsertion(generator)) { return; } ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); var entity = new TimestampVersioned { Name = "int-vers" } ; s.Save(entity); s.CreateQuery("select id, name, version from TimestampVersioned").List(); t.Commit(); s.Close(); long initialId = entity.Id; |
| |||
// Make sure the env supports bulk inserts with generated ids... IEntityPersister persister = sessions.GetEntityPersister( typeof( [[#variable583b7200]]).FullName); IIdentifierGenerator generator = persister.IdentifierGenerator; if ( !HqlSqlWalker.SupportsIdGenWithBulkInsertion(generator)) { return; } ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); var entity = new [[#variable583b7200]]{ Name = "int-vers" } ; s.Save(entity); s.CreateQuery( [[#variable583b6fa0]]).List(); t.Commit(); s.Close(); long initialId = entity.Id; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#583b7200]] | TimestampVersioned |
1 | 2 | [[#583b7200]] | IntegerVersioned |
2 | 1 | [[#583b6fa0]] | "select id, name, version from TimestampVersioned" |
2 | 2 | [[#583b6fa0]] | "select id, name, version from IntegerVersioned" |