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 fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---