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.992 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 17 | src/NHibernate.Test/NHSpecificTest/NH1756/Fixture.cs |
2 | 17 | 41 | src/NHibernate.Test/NHSpecificTest/NH1756/Fixture.cs |
| ||||
{ using (ISession session = OpenSession()) { using (ITransaction transaction = session.BeginTransaction()) { var book = new BookNotGenerated { Name = "test book", Pages = new List<Page> () , } ; session.Save(book); book.Name = "modified test book"; transaction.Commit(); } } using (ISession session = OpenSession()) { using (ITransaction transaction = session.BeginTransaction()) { session.CreateQuery("delete from BookNotGenerated").ExecuteUpdate(); transaction.Commit(); } } } |
| ||||
{ using (ISession session = OpenSession()) { using (ITransaction transaction = session.BeginTransaction()) { var book = new Book { Name = "test book", Pages = new List<Page> () , } ; session.Save(book); book.Name = "modified test book"; transaction.Commit(); } } using (ISession session = OpenSession()) { using (ITransaction transaction = session.BeginTransaction()) { session.CreateQuery("delete from Book").ExecuteUpdate(); transaction.Commit(); } } } |
| |||
{ using (ISession session = OpenSession()) { using (ITransaction transaction = session.BeginTransaction()) { var book = new [[#variable6ff311a0]]{ Name = "test book", Pages = new List<Page> () , } ; session.Save(book); book.Name = "modified test book"; transaction.Commit(); } } using (ISession session = OpenSession()) { using (ITransaction transaction = session.BeginTransaction()) { session.CreateQuery( [[#variable6ff31100]]).ExecuteUpdate(); transaction.Commit(); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6ff311a0]] | BookNotGenerated |
1 | 2 | [[#6ff311a0]] | Book |
2 | 1 | [[#6ff31100]] | "delete from BookNotGenerated" |
2 | 2 | [[#6ff31100]] | "delete from Book" |