Hey guys,

I'm currently porting a project from NHibernate 2.0.1 to 2.1.2 and I
am experiencing some problems with the mapping.

These are the steps I did so far:

1) Changed all references of NHibernate 2.0.1 to 2.1.2 (including all
other references like Castle etc.)
2) Secified the Proxy-Library in hibernate.cfg.xml

Did I forget something?

These are the sample classes I want to initialize:

Class.cs
---------------------
[Class( 0, Table = "AD_GROUP" )]
public class AdGroup
{
    [Id( TypeType = typeof ( long ), Column = "ID", Name = "Id",
UnsavedValueObject = 0 )]
    [Generator( 1, Class = "native" )]
    [Param( 2, Name = "sequence", Content = "AD_GROUP_ID_SEQ" )]
    public virtual long Id { get; set; }
}


This is the xml result from HbmSerializer:
--------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<!--Generated by NHibernate.Mapping.Attributes on 2010-09-27
10:40:01Z.-->
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class table="AD_GROUP">
    <id name="Id" column="ID" type="Int64" unsaved-value="0">
      <generator class="native">
        <param name="sequence">AD_GROUP_ID_SEQ</param>
      </generator>
    </id>
  </class>
</hibernate-mapping>


Any ideas how to solve the problem?

Regards,
Maik

-- 
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