Hi Oskar, This is the composite-id fragment:
<composite-id> <key-property name="TransactId" type="..."> <column name="TransactId" /> </key-property> <key-property name="TransactType" type="..." *length="2"*> <column name="TransactType" /> </key-property> <key-many-to-one name="Entity" type="..."> <column name="EntityId" /> </key-many-to-one> </composite-id> Thanks. Aris On Tuesday, December 25, 2012 8:00:57 PM UTC+8, Oskar Berggren wrote: > > If you look at the XML mapping generated by fluent nhibernate's > ExportTo(), is the length property present (and with what value) for > the relevant key-property? > > /Oskar > > > 2012/12/24 <phin...@gmail.com <javascript:>>: > > Here i have the following mapping: > > > > CompositeId() > > .KeyProperty(e => e.TransactId, "TransactId") > > .KeyProperty(e => e.TransactType, p => > > { > > p.ColumnName("TType"); > > p.Length(2); > > }) > > .KeyReference(e => e.Entity, "EntityId"); > > > > ... which is supposed to create 3-column index key: > > TransactId - bigint > > TType -varchar(2) > > EntityId - bigint > > > > I am using Firebird 2.5 (32bit), and FluentNHibernate v1.3. The > database is > > UTF8 encoded. > > > > However, it throws an index creation exception saying the index size > > exceeded the limit. Looking at the schema, the DDL generated is : > > TransactId BIGINT not null, > > TType VARCHAR(255) not null, > > EntityId BIGINT not null, > > > > The length did not changed; only the column name. > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Fluent NHibernate" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/fluent-nhibernate/-/9TIhIZNY99oJ. > > To post to this group, send email to > > fluent-n...@googlegroups.com<javascript:>. > > > To unsubscribe from this group, send email to > > fluent-nhibern...@googlegroups.com <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/fluent-nhibernate?hl=en. > -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To view this discussion on the web visit https://groups.google.com/d/msg/fluent-nhibernate/-/62wbIw-25mwJ. To post to this group, send email to fluent-nhibernate@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.