It's more important to have unit tests than to have a clean domain model - safe refactoring is probably the biggest benefit, but there are others. I suggest that you listen to Ben's advice.
On Jun 11, 3:28 pm, chitech <[email protected]> wrote: > The decision to fluent switch is that we don't want activerecord > attributes in our domainmodel. We want it to be clean. Another point > is strong-typed maps for easy refactoring later. > > On 11 Jun., 14:36, Ben Hyrman <[email protected]> wrote: > > > > > Well, then I would start by making sure you have covering unit tests > > for your current persistence and retrieval calls. Then convert one by > > one and make sure your tests stay green. If I may, though, what's the > > compelling desire to switch to Fluent NHibernate? I haven't tried it > > or thought about it much, but I would think it'd be painless to use > > FNH to handle NH config in Castle and then just keep ActiveRecord for > > the data access. > > > On Thu, Jun 11, 2009 at 8:04 AM, chitech<[email protected]> wrote: > > > > It's not hand-written but from ActiveRecord. What do you mean with all > > > tests pass? If you mean unittest we have not implement unitest yet. > > > (only a few) > > > > On 10 Jun., 15:19, Ben Hyrman <[email protected]> wrote: > > >> You can tell it to export the maps on the config. It'll be hard to > > >> hand-diff them because I can pretty much guarantee they will look > > >> different from your hand-written ones. But, you could read them at > > >> least. > > > >> Personally, I would start with the fluent config and keep all of your > > >> existing hbm files. Ensure that all tests pass. Then, choose one to > > >> convert from hbm to fluent. Ensure that hbm is no longer set to > > >> embedded resource. Clean, compile, ensure tests pass, continue. > > > >> On Wed, Jun 10, 2009 at 9:03 AM, chitech<[email protected]> wrote: > > > >> > Thx for the answers. I will try to do it be myself. How can I be sure > > >> > that the remap is consistent with the existing hbm files? Am I rigth > > >> > that fluent generate hbm files in memory? If this is true I can't > > >> > compare the old hbm (Generated by ActiveRecord) and the new hbm > > >> > (Generated by Fluent) > > > >> > On 10 Jun., 12:16, David Perfors <[email protected]> wrote: > > >> >> It will do you good :) > > >> >> We spend a morning to remap our domain to fluent nhibernate with two > > >> >> people.. he didn't know anything about fluent nhibernate and I taught > > >> >> him the essentials that where needed. (we converted 59 hbm files, from > > >> >> which some had more than one class to map..) > > > >> >> On Jun 9, 10:22 pm, James Gregory <[email protected]> wrote: > > > >> >> > Not automatically, no. They're easy to write though, and the > > >> >> > practice will > > >> >> > do you good :) > > > >> >> > On Tue, Jun 9, 2009 at 9:17 PM, chitech <[email protected]> wrote: > > > >> >> > > Alo > > > >> >> > > We have a existing application using NHibernate. The generated hbm > > >> >> > > files comes from Castle ActiveRecord. Is it possible to convert > > >> >> > > the > > >> >> > > existing hbm files to fluent Map classes?- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
