CloneSet871


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11250.967class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11162
src/NHibernate.Test/NHSpecificTest/CriteriaQueryOnComponentCollection/Fixture.cs
21176
src/NHibernate.Test/NHSpecificTest/CriteriaQueryOnComponentCollection/Fixture.cs
Clone Instance
1
Line Count
11
Source Line
62
Source File
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);
            }
        }



Clone Instance
2
Line Count
11
Source Line
76
Source File
src/NHibernate.Test/NHSpecificTest/CriteriaQueryOnComponentCollection/Fixture.cs

                [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);
                        }
                }



Clone AbstractionParameter Count: 5Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#584638a0]]
CanQueryByCriteriaOnSetOfCompositeElement 
12[[#584638a0]]
CanQueryByCriteriaOnSetOfElement 
21[[#584637a0]]
"ManagedEmployees" 
22[[#584637a0]]
"Amounts" 
31[[#583e9820]]
Eq 
32[[#583e9820]]
Gt 
41[[#58463760]]
"Position" 
42[[#58463760]]
"Amount" 
51[[#58463740]]
"parent" 
52[[#58463740]]
5M