I've just switched from *.hbm.xml mapping to NHF regular mapping (not
automapping).
I have still few difficulties with the full migration. Possibly this
is due to the fact that I'm using legacy database with complex schema.
Most common thing is that UseCompositeId.WithKeyProperty doesn't
support custom types. In my case I need to use TrimmedString user type
because my database is padding string values with spaces.
Fortunately I see that issue 199 is created and assigned so I hope
that soon this will be solved.
Next thing is following:
Id.GeneratedBy.Foreign(“Account”)
I think that it should be rather
Id.GeneratedBy.Foreign<Account>
but there is no such possibility. Should I raise an issue on this?
Next things
- ReadOnly attribute is not available for References;
- Autonamber is not available for References; I think also that it
should be renamed to Insertable rather because current name is
misleading; also Updatable would be very useful instead of
SetAttribute.
Then I have some doubts about enum handling. For example I'm using
System.DayOfWeek type mapped into integer column. In hbm.xml file I've
set type="System.DayOfWeek". In NHF I've set CustomTypeIs<DayOfWeek>
but I see that generated hbm.xml file contains GenericEnumMapper. Is
this correct?
Finally I don't know how to raise an issue into code.google.com
correctly. When I want to do this the only kind of issue is "Defect".
As you see my list of complains does not contain bugs in NHF, these
are enhancements rather. Similar things are with patches - I've
provided a patch 147 to handle my database in NHF but this is also
classified as "Defect" which is also not correct.
Is there a possibility to raise an issue using more precise
classification? On nhjira.koah.net I can raise an issue as a patch,
bug, new feature or improvement.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---