Skip to content

Commit 59484aa

Browse files
Merge pull request #10 from fredericDelaporte/v5.0.0
Release v5.0.0
2 parents 7eba884 + ae9d7ee commit 59484aa

21 files changed

+261
-555
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ dlldata.c
6262
# Chutzpah Test files
6363
_Chutzpah*
6464

65+
# Visual Studio user settings directory
66+
.vs
67+
68+
# Visual Studio Code user settings directory
69+
.vscode
70+
6571
# Visual C++ cache files
6672
ipch/
6773
*.aps
@@ -81,6 +87,9 @@ $tf/
8187
# Guidance Automation Toolkit
8288
*.gpState
8389

90+
# JetBrains Rider IDE user settings directory
91+
.idea
92+
8493
# ReSharper is a .NET coding add-in
8594
_ReSharper*/
8695
*.[Rr]e[Ss]harper

src/NHibernate.Mapping.Attributes.Test/DomainModel.Reference.hbm.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!--Generated from NHibernate.Mapping.Attributes on 2011-08-13 16:13:06Z.-->
33
<hibernate-mapping auto-import="true" default-lazy="true" xmlns="urn:nhibernate-mapping-2.2">
4-
<import class="NHibernate.Mapping.Attributes.Test.DomainModel.Glarch, NHibernate.Mapping.Attributes.Test" />
54
<import class="Double" rename="RealNumber" />
5+
<import class="NHibernate.Mapping.Attributes.Test.DomainModel.Glarch, NHibernate.Mapping.Attributes.Test" />
66
<class name="NHibernate.Mapping.Attributes.Test.DomainModel.Baz, NHibernate.Mapping.Attributes.Test" proxy="NHibernate.Mapping.Attributes.Test.DomainModel.Baz, NHibernate.Mapping.Attributes.Test" discriminator-value="base" mutable="false" polymorphism="explicit" where="1" persister="NHibernate.Mapping.Attributes.Test.DomainModel.Baz, NHibernate.Mapping.Attributes.Test" batch-size="9" check="0">
77
<id name="Code" access="Int32" column="Id" type="String" length="8" unsaved-value="null">
88
<column name="baz_id" length="32" />
@@ -297,15 +297,15 @@
297297
<joined-subclass extends="Guid" name="X+PrivS+PrivJ, NHibernate.Mapping.Attributes.Test">
298298
<key />
299299
<property name="userPattern" type="X+PrivS+PrivC, NHMA.Test" />
300-
<property name="sqlPattern" type="NHibernate.UserTypes.SqlTypes.SqlDateTimeType, NHibernate.UserTypes.SqlTypes" />
300+
<property name="sqlPattern" type="NHibernate.UserTypes.SqlTypes.SqlDateTimeType, NHibernate.UserTypes.SqlTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
301301
<joined-subclass name="X+PrivS+PrivJ+C+IntJ, NHibernate.Mapping.Attributes.Test" extends="Guid">
302302
<key />
303303
</joined-subclass>
304304
</joined-subclass>
305305
<subclass extends="Guid" name="X+PrivS, NHibernate.Mapping.Attributes.Test" />
306306
<union-subclass entity-name="NHibernate.Mapping.Attributes.Test.DomainModel.Foo, NHibernate.Mapping.Attributes.Test" proxy="NHibernate.Mapping.Attributes.Test.DomainModel.UnionSubclass, NHibernate.Mapping.Attributes.Test" table="uT" schema="none" select-before-update="true" extends="NHibernate.Mapping.Attributes.Test.DomainModel.Baz, NHibernate.Mapping.Attributes.Test" abstract="false" check="maybe">
307307
<meta attribute="Meta">Content</meta>
308-
<tuplizer entity-mode="xml" class="FakeClass" />
308+
<tuplizer entity-mode="dynamic-map" class="FakeClass" />
309309
</union-subclass>
310310
<joined-subclass name="NHibernate.Mapping.Attributes.Test.DomainModel.JoinedBaz, NHibernate.Mapping.Attributes.Test" proxy="NHibernate.Mapping.Attributes.Test.DomainModel.JoinedBaz, NHibernate.Mapping.Attributes.Test" schema-action="X" select-before-update="true" extends="NHibernate.Mapping.Attributes.Test.DomainModel.Baz, NHibernate.Mapping.Attributes.Test">
311311
<meta attribute="Meta">Content</meta>

src/NHibernate.Mapping.Attributes.Test/DomainModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ public interface Sql
10181018
public interface UnionSubclass
10191019
{
10201020
[NHMA.Meta(0, Attribute = "Meta", Content = "Content")]
1021-
[NHMA.Tuplizer(1, Class = "FakeClass", EntityMode = NHMA.TuplizerEntityMode.Xml)]
1021+
[NHMA.Tuplizer(1, Class = "FakeClass", EntityMode = NHMA.TuplizerEntityMode.DynamicMap)]
10221022
object Object { get; }
10231023
}
10241024
#endregion

src/NHibernate.Mapping.Attributes.Test/SerializationFixture.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ private void Compare(Stream stream, string refFilePath)
110110
refLine = refReader.ReadLine();
111111
if (l != 2 && line != refLine) // line 2 contain a comment
112112
throw new Exception(string.Format(
113-
"Difference at line {0}:{3}Src={1}{3}Ref={2}", l, line, refLine, Environment.NewLine));
113+
"Difference with {4} at line {0}:{3}Src={1}{3}Ref={2}",
114+
l, line, refLine, Environment.NewLine, Path.GetFileName(refFilePath)));
114115
} while (line != null && refLine != null);
115116
}
116117
}

src/NHibernate.Mapping.Attributes/ArrayAttribute.cs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public class ArrayAttribute : BaseAttribute
3636

3737
private string _catalog = null;
3838

39-
private bool _embedxml = true;
40-
4139
private bool _inverse = false;
4240

4341
private string _table = null;
@@ -52,8 +50,6 @@ public class ArrayAttribute : BaseAttribute
5250

5351
private bool _inversespecified;
5452

55-
private bool _embedxmlspecified;
56-
5753
private CollectionFetchMode _fetch = CollectionFetchMode.Unspecified;
5854

5955
private string _elementclass = null;
@@ -410,28 +406,5 @@ public virtual string Node
410406
this._node = value;
411407
}
412408
}
413-
414-
/// <summary> </summary>
415-
public virtual bool EmbedXml
416-
{
417-
get
418-
{
419-
return this._embedxml;
420-
}
421-
set
422-
{
423-
this._embedxml = value;
424-
_embedxmlspecified = true;
425-
}
426-
}
427-
428-
/// <summary> Tells if EmbedXml has been specified. </summary>
429-
public virtual bool EmbedXmlSpecified
430-
{
431-
get
432-
{
433-
return this._embedxmlspecified;
434-
}
435-
}
436409
}
437410
}

src/NHibernate.Mapping.Attributes/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
[assembly: AssemblyCompanyAttribute("NHibernate.org")]
99
[assembly: AssemblyProductAttribute("NHibernate.Mapping.Attributes")]
1010
[assembly: AssemblyCopyrightAttribute("Licensed under LGPL.")]
11-
[assembly: AssemblyVersionAttribute("4.0.0.1")]
12-
[assembly: AssemblyInformationalVersionAttribute("4.0.0.1")]
13-
[assembly: AssemblyFileVersionAttribute("4.0.0.1")]
11+
[assembly: AssemblyVersionAttribute("5.0.0")]
12+
[assembly: AssemblyInformationalVersionAttribute("5.0.0")]
13+
[assembly: AssemblyFileVersionAttribute("5.0.0.0")]
1414
//[assembly: AssemblyKeyFileAttribute("../../src/NHibernate.snk")]
1515
[assembly: AssemblyDelaySignAttribute(false)]
1616
[assembly: AllowPartiallyTrustedCallers]

src/NHibernate.Mapping.Attributes/BagAttribute.cs

Lines changed: 22 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -26,59 +26,55 @@ namespace NHibernate.Mapping.Attributes
2626
public class BagAttribute : BaseAttribute
2727
{
2828

29-
private string _persister = null;
30-
31-
private string _where = null;
29+
private bool _inversespecified;
3230

33-
private string _schema = null;
31+
private string _access = null;
3432

35-
private bool _mutablespecified;
33+
private string _collectiontype = null;
3634

37-
private bool _generic = false;
35+
private CollectionLazy _lazy = CollectionLazy.Unspecified;
3836

3937
private string _catalog = null;
4038

41-
private bool _mutable = true;
42-
4339
private string _orderby = null;
4440

45-
private long _batchsize = -9223372036854775808;
41+
private bool _inverse = false;
4642

47-
private CollectionFetchMode _fetch = CollectionFetchMode.Unspecified;
43+
private string _table = null;
4844

49-
private string _subselect = null;
45+
private string _schema = null;
5046

51-
private string _table = null;
47+
private OuterJoinStrategy _outerjoin = OuterJoinStrategy.Unspecified;
5248

53-
private bool _embedxml = true;
49+
private bool _optimisticlock = true;
5450

55-
private bool _inverse = false;
51+
private string _persister = null;
5652

5753
private string _cascade = null;
5854

59-
private string _name = null;
55+
private CollectionFetchMode _fetch = CollectionFetchMode.Unspecified;
6056

61-
private string _node = null;
57+
private bool _genericspecified;
6258

63-
private bool _inversespecified;
59+
private string _node = null;
6460

65-
private OuterJoinStrategy _outerjoin = OuterJoinStrategy.Unspecified;
61+
private string _subselect = null;
6662

67-
private CollectionLazy _lazy = CollectionLazy.Unspecified;
63+
private bool _mutable = true;
6864

69-
private bool _embedxmlspecified;
65+
private string _name = null;
7066

71-
private string _access = null;
67+
private bool _mutablespecified;
7268

73-
private bool _genericspecified;
69+
private string _check = null;
7470

75-
private bool _optimisticlockspecified;
71+
private long _batchsize = -9223372036854775808;
7672

77-
private string _check = null;
73+
private string _where = null;
7874

79-
private bool _optimisticlock = true;
75+
private bool _optimisticlockspecified;
8076

81-
private string _collectiontype = null;
77+
private bool _generic = false;
8278

8379
/// <summary> Default constructor (position=0) </summary>
8480
public BagAttribute() :
@@ -430,29 +426,6 @@ public virtual string Node
430426
}
431427
}
432428

433-
/// <summary> </summary>
434-
public virtual bool EmbedXml
435-
{
436-
get
437-
{
438-
return this._embedxml;
439-
}
440-
set
441-
{
442-
this._embedxml = value;
443-
_embedxmlspecified = true;
444-
}
445-
}
446-
447-
/// <summary> Tells if EmbedXml has been specified. </summary>
448-
public virtual bool EmbedXmlSpecified
449-
{
450-
get
451-
{
452-
return this._embedxmlspecified;
453-
}
454-
}
455-
456429
/// <summary>The concrete collection should use a generic version or an object-based version.</summary>
457430
public virtual bool Generic
458431
{

src/NHibernate.Mapping.Attributes/FlushMode.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ public enum FlushMode
3131
[System.Xml.Serialization.XmlEnumAttribute("auto")]
3232
Auto,
3333

34-
/// <summary>never</summary>
35-
[System.Xml.Serialization.XmlEnumAttribute("never")]
36-
Never,
34+
/// <summary>manual</summary>
35+
[System.Xml.Serialization.XmlEnumAttribute("manual")]
36+
Manual,
3737

3838
/// <summary>always</summary>
3939
[System.Xml.Serialization.XmlEnumAttribute("always")]
4040
Always,
41+
42+
/// <summary>never</summary>
43+
[System.Xml.Serialization.XmlEnumAttribute("never")]
44+
Never,
4145
}
4246
}

0 commit comments

Comments
 (0)