Not an Issue
Details
Assignee
Alex ZaytsevAlex ZaytsevReporter
Gleb ChermennovGleb ChermennovLabels
Components
Affects versions
Priority
MinorWho's Looking?
Open Who's Looking?
Details
Details
Assignee
Alex Zaytsev
Alex ZaytsevReporter
Gleb Chermennov
Gleb ChermennovLabels
Components
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
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.