Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 5 | 0.967 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 62 | src/NHibernate.Test/NHSpecificTest/CriteriaQueryOnComponentCollection/Fixture.cs |
2 | 11 | 76 | src/NHibernate.Test/NHSpecificTest/CriteriaQueryOnComponentCollection/Fixture.cs |
| ||||
[Test] public void CanQueryByCriteriaOnSetOfCompositeElement() { using ( var s = sessions.OpenSession()) { var list = s.CreateCriteria<Employee> (). CreateCriteria("ManagedEmployees"). Add(Restrictions.Eq("Position", "parent")). SetResultTransformer(new RootEntityResultTransformer()). List(); Assert.IsNotEmpty(list); } } |
| ||||
[Test] public void CanQueryByCriteriaOnSetOfElement() { using ( var s = sessions.OpenSession()) { var list = s.CreateCriteria<Employee> (). CreateCriteria("Amounts"). Add(Restrictions.Gt("Amount", 5M)). SetResultTransformer(new RootEntityResultTransformer()). List(); Assert.IsNotEmpty(list); } } |
| |||
[Test] public void [[#variable584638a0]]() { using ( var s = sessions.OpenSession()) { var list = s.CreateCriteria<Employee> ().CreateCriteria( [[#variable584637a0]]).Add(Restrictions. [[#variable583e9820]]( [[#variable58463760]], [[#variable58463740]])).SetResultTransformer(new RootEntityResultTransformer()).List(); Assert.IsNotEmpty(list); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#584638a0]] | CanQueryByCriteriaOnSetOfCompositeElement |
1 | 2 | [[#584638a0]] | CanQueryByCriteriaOnSetOfElement |
2 | 1 | [[#584637a0]] | "ManagedEmployees" |
2 | 2 | [[#584637a0]] | "Amounts" |
3 | 1 | [[#583e9820]] | Eq |
3 | 2 | [[#583e9820]] | Gt |
4 | 1 | [[#58463760]] | "Position" |
4 | 2 | [[#58463760]] | "Amount" |
5 | 1 | [[#58463740]] | "parent" |
5 | 2 | [[#58463740]] | 5M |