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 -~----------~----~----~----~------~----~------~--~---
