CloneSet123


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28430.991statement_list[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12837
src/NHibernate.Test/NHSpecificTest/NH1487/Fixture.cs
22673
src/NHibernate.Test/NHSpecificTest/NH1487/Fixture.cs
332106
src/NHibernate.Test/NHSpecificTest/NH1487/Fixture.cs
427144
src/NHibernate.Test/NHSpecificTest/NH1487/Fixture.cs
Clone Instance
1
Line Count
28
Source Line
37
Source File
src/NHibernate.Test/NHSpecificTest/NH1487/Fixture.cs

                        if ( !(Dialect.Dialect.GetDialect() is MsSql2000Dialect))
                        {
                                Assert.Ignore("Specific for MsSql2000Dialect");
                        }
                        const string hbm = @"<?xml version='1.0' encoding='utf-8' ?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
namespace='NHibernate.Test.NHSpecificTest.NH1487'
assembly='NHibernate.Test'>
    <class name='Entity' >
        <id name='Id' >
            <generator class='assigned' />
        </id>
        <property name='A' unique-key='AC'/>
        <property name='B' unique-key='BC'/>
        <property name='C' unique-key='AC, BC'/>
    </class>
</hibernate-mapping>"   ;

                        var cfg = GetConf();

                        cfg.AddXmlString(hbm);

                        // Can create the schema
                        var scriptB = new StringBuilder();
                        new SchemaExport(cfg).Create(sl => scriptB.Append(sl), true);
                        var script = scriptB.ToString();
                        Assert.That(script, Text.Contains("unique (A, C)"));
                        Assert.That(script, Text.Contains("unique (B, C)"));


Clone Instance
2
Line Count
26
Source Line
73
Source File
src/NHibernate.Test/NHSpecificTest/NH1487/Fixture.cs

                        if ( !(Dialect.Dialect.GetDialect() is MsSql2000Dialect))
                        {
                                Assert.Ignore("Specific for MsSql2000Dialect");
                        }
                        const string hbm = @"<?xml version='1.0' encoding='utf-8' ?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
namespace='NHibernate.Test.NHSpecificTest.NH1487'
assembly='NHibernate.Test'>
    <class name='Entity' >
        <id name='Id' >
            <generator class='assigned' />
        </id>
        <property name='A' index='AC'/>
        <property name='B' index='BC'/>
        <property name='C' index='AC, BC'/>
    </class>
</hibernate-mapping>"   ;

                        var cfg = GetConf();
                        cfg.AddXmlString(hbm);

                        var scriptB = new StringBuilder();
                        new SchemaExport(cfg).Create(sl => scriptB.Append(sl), true);
                        var script = scriptB.ToString();
                        Assert.That(script, Text.Contains("create index AC on Entity (A, C)"));
                        Assert.That(script, Text.Contains("create index BC on Entity (B, C)"));


Clone Instance
3
Line Count
32
Source Line
106
Source File
src/NHibernate.Test/NHSpecificTest/NH1487/Fixture.cs

                        if ( !(Dialect.Dialect.GetDialect() is MsSql2000Dialect))
                        {
                                Assert.Ignore("Specific for MsSql2000Dialect");
                        }
                        const string hbm = @"<?xml version='1.0' encoding='utf-8' ?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
namespace='NHibernate.Test.NHSpecificTest.NH1487'
assembly='NHibernate.Test'>
    <class name='Entity' >
        <id name='Id' >
            <generator class='assigned' />
        </id>
        <property name='A'>
           <column name='A' index='AC'/>
        </property>
        <property name='B'>
           <column name='B' index='BC'/>
        </property>
        <property name='C'>
           <column name='C' index='AC,BC'/>
        </property>
    </class>
</hibernate-mapping>"   ;

                        var cfg = GetConf();
                        cfg.AddXmlString(hbm);

                        var scriptB = new StringBuilder();
                        new SchemaExport(cfg).Create(sl => scriptB.Append(sl), true);
                        var script = scriptB.ToString();
                        Assert.That(script, Text.Contains("create index AC on Entity (A, C)"));
                        Assert.That(script, Text.Contains("create index BC on Entity (B, C)"));


Clone Instance
4
Line Count
27
Source Line
144
Source File
src/NHibernate.Test/NHSpecificTest/NH1487/Fixture.cs

                        if ( !(Dialect.Dialect.GetDialect() is MsSql2000Dialect))
                        {
                                Assert.Ignore("Specific for MsSql2000Dialect");
                        }
                        const string hbm = @"<?xml version='1.0' encoding='utf-8' ?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
namespace='NHibernate.Test.NHSpecificTest.NH1487'
assembly='NHibernate.Test'>
    <class name='Entity' >
        <id name='Id' >
            <column name='Id' index='IdxId1,IdxId2'/>
            <generator class='assigned' />
        </id>
        <property name='A'/>
        <property name='B'/>
        <property name='C'/>
    </class>
</hibernate-mapping>"   ;

                        var cfg = GetConf();
                        cfg.AddXmlString(hbm);

                        var scriptB = new StringBuilder();
                        new SchemaExport(cfg).Create(sl => scriptB.Append(sl), true);
                        var script = scriptB.ToString();
                        Assert.That(script, Text.Contains("create index IdxId1 on Entity (Id)"));
                        Assert.That(script, Text.Contains("create index IdxId2 on Entity (Id)"));


Clone AbstractionParameter Count: 3Parameter Bindings

if ( !(Dialect.Dialect.GetDialect() is MsSql2000Dialect))
{
   Assert.Ignore("Specific for MsSql2000Dialect");
}
const string hbm = [[#variable65269e00]];
var cfg = GetConf();
cfg.AddXmlString(hbm);
// Can create the schema
var scriptB = new StringBuilder();
new SchemaExport(cfg).Create(sl => scriptB.Append(sl), true);
var script = scriptB.ToString();
Assert.That(script, Text.Contains( [[#variable687f9aa0]]));
Assert.That(script, Text.Contains( [[#variable70b27180]]));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#65269e00]]
@"<?xml version='1.0' encoding='utf-8' ?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
namespace='NHibernate.Test.NHSpecificTest.NH1487'
assembly='NHibernate.Test'>
    <class name='Entity' >
        <id name='Id' >
            <generator class='assigned' />
        </id>
        <property name='A' unique-key='AC'/>
        <property name='B' unique-key='BC'/>
        <property name='C' unique-key='AC, BC'/>
    </class>
</hibernate-mapping>" 
12[[#65269e00]]
@"<?xml version='1.0' encoding='utf-8' ?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
namespace='NHibernate.Test.NHSpecificTest.NH1487'
assembly='NHibernate.Test'>
    <class name='Entity' >
        <id name='Id' >
            <generator class='assigned' />
        </id>
        <property name='A' index='AC'/>
        <property name='B' index='BC'/>
        <property name='C' index='AC, BC'/>
    </class>
</hibernate-mapping>" 
13[[#65269e00]]
@"<?xml version='1.0' encoding='utf-8' ?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
namespace='NHibernate.Test.NHSpecificTest.NH1487'
assembly='NHibernate.Test'>
    <class name='Entity' >
        <id name='Id' >
            <generator class='assigned' />
        </id>
        <property name='A'>
           <column name='A' index='AC'/>
        </property>
        <property name='B'>
           <column name='B' index='BC'/>
        </property>
        <property name='C'>
           <column name='C' index='AC,BC'/>
        </property>
    </class>
</hibernate-mapping>" 
14[[#65269e00]]
@"<?xml version='1.0' encoding='utf-8' ?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
namespace='NHibernate.Test.NHSpecificTest.NH1487'
assembly='NHibernate.Test'>
    <class name='Entity' >
        <id name='Id' >
            <column name='Id' index='IdxId1,IdxId2'/>
            <generator class='assigned' />
        </id>
        <property name='A'/>
        <property name='B'/>
        <property name='C'/>
    </class>
</hibernate-mapping>" 
21[[#687f9aa0]]
"unique (A, C)" 
22[[#687f9aa0]]
"create index AC on Entity (A, C)" 
23[[#687f9aa0]]
"create index AC on Entity (A, C)" 
24[[#687f9aa0]]
"create index IdxId1 on Entity (Id)" 
31[[#70b27180]]
"unique (B, C)" 
32[[#70b27180]]
"create index BC on Entity (B, C)" 
33[[#70b27180]]
"create index BC on Entity (B, C)" 
34[[#70b27180]]
"create index IdxId2 on Entity (Id)"