Hi,
I found the problem. I switched on the show_sql to find out what SQL Commands are generated. In my case I get the following output
Code:
NHibernate: SELECT this_.OrganizationalUnitId as Organiza1_9_0_, this_.TypeId as TypeId9_0_ from OrganizationalUnit this_
NHibernate: SELECT type0_.TypeId as TypeId16_0_, type0_.TypeName as TypeName16_0_, type0_.Icon as Icon16_0_, type0_.IsStructuralType as IsStruct4_16_0_, type0_.IsVisible as IsVisible16_0_, type0_.CanBeRootInHierarchy as CanBeRoo6_16_0_, type0_.IsEditable as IsEditable16_0_, type0_.SuperTypeId as SuperTyp8_16_0_ from Type type0_ WHERE type0_.TypeId=?; @p0 = 'employee '
NHibernate: SELECT type0_.TypeId as TypeId16_0_, type0_.TypeName as TypeName16_0_, type0_.Icon as Icon16_0_, type0_.IsStructuralType as IsStruct4_16_0_, type0_.IsVisible as IsVisible16_0_, type0_.CanBeRootInHierarchy as CanBeRoo6_16_0_, type0_.IsEditable as IsEditable16_0_, type0_.SuperTypeId as SuperTyp8_16_0_ from Type type0_ WHERE type0_.TypeId=?; @p0 = 'group '
NHibernate: SELECT type0_.TypeId as TypeId16_0_, type0_.TypeName as TypeName16_0_, type0_.Icon as Icon16_0_, type0_.IsStructuralType as IsStruct4_16_0_, type0_.IsVisible as IsVisible16_0_, type0_.CanBeRootInHierarchy as CanBeRoo6_16_0_, type0_.IsEditable as IsEditable16_0_, type0_.SuperTypeId as SuperTyp8_16_0_ from Type type0_ WHERE type0_.TypeId=?; @p0 = 'structuralUnit '
NHibernate: SELECT type0_.TypeId as TypeId16_0_, type0_.TypeName as TypeName16_0_, type0_.Icon as Icon16_0_, type0_.IsStructuralType as IsStruct4_16_0_, type0_.IsVisible as IsVisible16_0_, type0_.CanBeRootInHierarchy as CanBeRoo6_16_0_, type0_.IsEditable as IsEditable16_0_, type0_.SuperTypeId as SuperTyp8_16_0_ from Type type0_ WHERE type0_.TypeId=?; @p0 = 'role '
NHibernate: SELECT fkassignun0_.OrganizationalUnitId as Organiza5___1_, fkassignun0_.AssignId as AssignId1_, fkassignun0_.AssignId as AssignId6_0_, fkassignun0_.Validas ValidFrom6_0_, fkassignun0_.ValidTo as ValidTo6_0_, fkassignun0_.StatusId as StatusId6_0_, fkassignun0_.OrganizationalUnitId as Organiza5_6_0_ FROM AssignUnitToStatus fkassignun0_ WHERE fkassignun0_.OrganizationalUnitId=?; @p0 = '10'
In the last section you find "fkassignun0_.Validas" instead of "fkassignun0_.ValidFrom as". Obviously the string conversion of the assembly is buggy. unfortunately I have no idea how to fix it. Maybe there is somebody how knows how to do that??? Do you agree with my assumption that the bug is caused by Nhibernate.JetDriver assembly?
Thank you in advance for your help, effort and feedback
antoschka