This is fixed now, as of 2 minutes ago. Stupid bug.

On Mon, Feb 23, 2009 at 6:59 PM, Steven Lyons <stevenly...@gmail.com> wrote:

>
> I can't attach files to the messages on this forum, so it's just
> inline in the last message of the thread. You can just copy the text
> into a .patch file and apply it to your working copy.
>
>
> On Feb 23, 1:33 pm, Martin Nilsson <mffmar...@gmail.com> wrote:
> > Thanks!
> > But I couldn't find the patch to apply for this fix.
> >
> > On Mon, Feb 23, 2009 at 7:10 PM, Steven Lyons <stevenly...@gmail.com>
> wrote:
> >
> > > Martin,
> >
> > > This is a problem that is known. If you want to fix it in your source
> > > until it gets fixed, you can find a patch I made in this message:
> >
> > >http://groups.google.com/group/fluent-nhibernate/browse_thread/thread.
> ..
> >
> > > Hope it works for you,
> > > s.
> >
> > > On Feb 22, 3:03 pm, Martin Nilsson <mffmar...@gmail.com> wrote:
> > > > More info in this thread because I thought it was a problem in
> NHhttp://
> > > groups.google.com/group/nhusers/browse_thread/thread/81e8cffa5...
> >
> > > > Class:
> > > > public class Entity
> > > > {
> > > >   public virtual Guid Id { get; set; }
> > > >   public virtual string Content { get; set; }
> >
> > > > }
> >
> > > > Mapping:
> > > > public EntityMap()
> > > > {
> > > >   Id(x => x.Id);
> > > >   Map(x => x.Content).WithLengthOf(2500);
> >
> > > > }
> >
> > > > Generates this part in the hbm:
> > > > <property name="Content" length="*2500*" type="String">
> > > >   <column name="Content" />
> > > > </property>
> >
> > > > And when I run SchemaExport.Create it looks at *column *and it has no
> > > length
> > > > defined so length of column in table != 2500
> >
> > > > You can also check this test in Fluent
> >
> > >
> PropertyMapTester.Map_WithFluentLength_OnString_UsesWithLengthOf_PropertyColumnAttribute:
> > > > ClassElement.innerXml == "<property name=\"Name\" length=\"20\"
> > > > type=\"String\"><column name=\"Name\" /></property>"
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to