oh. well then. :) thx anyone know how to create an automatic column based on a sequence in the sql to create the table? (aka, without using a trigger) (oracle 10g)
On Dec 8, 7:46 pm, James Gregory <[email protected]> wrote: > You're using event listeners, something I don't do, hence my > unhelpfulness. You're on your own if that's the route you're taking. > > NHibernate has the concept of a "generated" property which can be set > to insert or always. Insert is for if a property is generated on insert > by the database (say by a calculated column), and always is for trigger > generated values. Generated columns will be pushed into your entity. > > If you were to use a trigger, you'd map it like this: > > Map(x => x.Property) > .Generated.Always(); -- 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.
