I am working on a project where the database should be documented. I
am looking for a way to use hibernate to define this in hibernate. I
am using attributes on my classes to define my database (an example
can be seen below).

    [NHibernate.Mapping.Attributes.Class(Table = "LINK")]
    public partial class Link
        private Int32 _id;
        [NHibernate.Mapping.Attributes.Id(Name = "Id", Column = "ID")]
        [NHibernate.Mapping.Attributes.Generator(1, Class =
"sequence")]
        [NHibernate.Mapping.Attributes.Param(2, Name = "sequence",
Content = "LINK_ID_SEQ")]
        public virtual Int32 Id
        {
            get
            {
                return this._id;
            }
            set
            {
                this._id = value;
            }
        }
   }
...
}


What I am looking for is something like:

    [NHibernate.Mapping.Attributes.Class(Table = "LINK",
Description="This is a table that keeps track of my links....")]
    public partial class Link

and

        [NHibernate.Mapping.Attributes.Param(2, Name = "sequence",
Content = "LINK_ID_SEQ", Description="This is my primary key
automatically generated by sequence number.")]
        public virtual Int32 Id


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to