| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 3 | 0.959 | non_pp_embedded_statement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 719 | src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs |
| 2 | 10 | 732 | src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs |
| ||||
if (insertNode == null)
// insertable simply because that is the user did not specify
// anything; just override it
property.IsInsertable = false;
else
// the user specifically supplied insert="true",
// which constitutes an illegal combo
throw new MappingException(
"cannot specify both insert=\"true\" and generated=\"" + generationName +
"\" for property: " + propName);
|
| ||||
if (updateNode == null)
// updateable only because the user did not specify
// anything; just override it
property.IsUpdateable = false;
else
// the user specifically supplied update="true",
// which constitutes an illegal combo
throw new MappingException(
"cannot specify both update=\"true\" and generated=\"" + generationName +
"\" for property: " + propName);
|
| |||
if ( [[#variable5eb856c0]]== null) // insertable simply because that is the user did not specify // updateable only because the user did not specify // anything; just override it property. [[#variable5eb85620]]= false; else // the user specifically supplied insert="true", // the user specifically supplied update="true", // which constitutes an illegal combo throw new MappingException( [[#variable5eb855c0]]+ generationName + "\" for property: " + propName); |
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5eb856c0]] | insertNode |
| 1 | 2 | [[#5eb856c0]] | updateNode |
| 2 | 1 | [[#5eb85620]] | IsInsertable |
| 2 | 2 | [[#5eb85620]] | IsUpdateable |
| 3 | 1 | [[#5eb855c0]] | "cannot specify both insert=\"true\" and generated=\"" |
| 3 | 2 | [[#5eb855c0]] | "cannot specify both update=\"true\" and generated=\"" |