Wrong field length of one of the fields of a composite id

Description

I'm using NHibernate 3.3.1.400 on .NET 4.0 and Sql Server 2008.
When I'm trying to map a composite id, one of the key fields get's incorrect length in generated sql query.
Having classes like this:

public class TestClass { public virtual int TransactId { get; set; } public virtual string TransactType { get; set; } public virtual Entity Entity { get; set; } public override bool Equals(object obj) { return true; } public override int GetHashCode() { return 20; } } public class Entity { public int Id { get; set; } }

and the mapping xml attached (generated by Fluent NHibernate, but I believe it's not an issue here), I get the field TType in a table TestClass with a length of 255.
If you consider this to be Fluent NHibernate problem, please say so.

Environment

None

Attachments

2
  • 15 Feb 2013, 09:39 PM
  • 15 Feb 2013, 09:39 PM

Activity

Show:

Alex Zaytsev May 11, 2014 at 12:29 PM

Closing as requested

Gleb Chermennov May 7, 2014 at 1:47 PM

Sorry everyone, that was really a bug in Fluent NHibernate.
This can be closed (I don't seem to have the rights to do so myself)

Not an Issue

Details

Assignee

Reporter

Labels

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created February 15, 2013 at 9:39 PM
Updated May 11, 2014 at 12:29 PM
Resolved May 11, 2014 at 12:29 PM
Who's Looking?