For further references. Regarding the workaround for generated property it is probably this thread which James is referring to. http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/6ad6bf65704c7d4/4ba378f7bb08b444
I found no info about previous requests for database-object. There is no work around for this then? Maybe I can have a plain hbm file for the Order class and exclude it when configuring with FNH? Maybe that's the work around? I want to configure the database in my code so I can create the schema (for tests) and don't have to do manual steps in the database. On Sun, Feb 15, 2009 at 10:24 AM, James Gregory <[email protected]>wrote: > We don't have official support for the generated property, but there is a > workaround available. As for database-object, not currently; it has been > requested before, so it will get in at some point, I just don't know when. > > > On Sun, Feb 15, 2009 at 9:08 AM, Martin Nilsson <[email protected]>wrote: > >> I want my Order class to have a more user friendly order number and use >> Guid as the entity id. I'm using Castle ActiveRecord so I started this >> thread, http://tinyurl.com/b6ulmz >> >> It seems that the Generated >> property<http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/mapping.html>(Chapter >> "5.1.9. property") is not supported in AR so I'm thinking of >> switching to NHibernate directly. Is it possible to configure >> database-object with Fluent NH? >> >> From >> http://blog.caraulean.com/2008/08/26/additional-identity-column-with-nhibernate/ >> >> The mapping file: >> <database-object> >> <create> >> ALTER TABLE Entity DROP COLUMN Id2 >> ALTER TABLE Entity ADD Id2 INT IDENTITY >> </create> >> <drop> >> ALTER TABLE Entity DROP COLUMN Id2 >> </drop> >> </database-object> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
