Update of /cvsroot/nhibernate/NHibernateContrib/src/NHibernate.Tool.Net2Hbm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25848/src/NHibernate.Tool.Net2Hbm
Modified Files:
IdAttribute.cs MapGenerator.cs PropertyAttribute.cs
Log Message:
Added support for the access attribute on the prooerty and id tags.
Index: MapGenerator.cs
===================================================================
RCS file: /cvsroot/nhibernate/NHibernateContrib/src/NHibernate.Tool.Net2Hbm/MapGenerator.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** MapGenerator.cs 13 Feb 2005 01:32:12 -0000 1.3
--- MapGenerator.cs 13 Feb 2005 03:40:44 -0000 1.4
***************
*** 375,378 ****
--- 375,379 ----
writer.WriteAttributeString( "name", property.Name );
writer.WriteAttributeString( "column", attribute.Column == null ? property.Name : attribute.Column );
+ writer.WriteAttributeString( "access", attribute.Access );
string typeName = null;
***************
*** 503,506 ****
--- 504,508 ----
writer.WriteAttributeString( "type", GetShortTypeName( property.PropertyType ) );
writer.WriteAttributeString( "column", attribute.Column );
+ writer.WriteAttributeString( "access", attribute.Access );
if( attribute.UnsavedValueType == UnsavedValueType.Specified )
Index: PropertyAttribute.cs
===================================================================
RCS file: /cvsroot/nhibernate/NHibernateContrib/src/NHibernate.Tool.Net2Hbm/PropertyAttribute.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PropertyAttribute.cs 30 Dec 2004 16:54:02 -0000 1.1
--- PropertyAttribute.cs 13 Feb 2005 03:40:44 -0000 1.2
***************
*** 13,16 ****
--- 13,17 ----
private string m_Column;
private System.Type m_Type;
+ private string m_Access = "property";
private bool m_Update = true;
private bool m_Insert = true;
***************
*** 94,97 ****
--- 95,107 ----
/// <summary>
+ /// Gets and sets the Access.
+ /// </summary>
+ public string Access
+ {
+ get { return m_Access; }
+ set { m_Access = value; }
+ }
+
+ /// <summary>
/// Gets and sets the Column.
/// </summary>
Index: IdAttribute.cs
===================================================================
RCS file: /cvsroot/nhibernate/NHibernateContrib/src/NHibernate.Tool.Net2Hbm/IdAttribute.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** IdAttribute.cs 30 Dec 2004 16:54:02 -0000 1.1
--- IdAttribute.cs 13 Feb 2005 03:40:44 -0000 1.2
***************
*** 12,15 ****
--- 12,16 ----
private string m_Column;
+ private string m_Access = "property";
private UnsavedValueType m_UnsavedValueType = UnsavedValueType.Null;
private string m_UnsavedValue;
***************
*** 37,40 ****
--- 38,50 ----
/// <summary>
+ /// Gets and sets the Access.
+ /// </summary>
+ public string Access
+ {
+ get { return m_Access; }
+ set { m_Access = value; }
+ }
+
+ /// <summary>
/// Gets and sets the UnsavedValueType.
/// </summary>
|