Please enable the debug mode and post the generated hbms. http://using.castleproject.org/display/AR/Configuration+Reference#ConfigurationReference-IsWebandThreadInfoTypeandIsDebug
On Jan 7, 6:44 am, MixMasta <[email protected]> wrote: > I outputted the SQL and it does not pick up the composite fields on > the insert statement. > > On Jan 7, 10:33 am, MixMasta <[email protected]> wrote: > > > > > Hi, > > I am using table inheritence and finding that my custom composite user > > type in my subclass is not being persisted. All the other properties > > are being set correctly. > > > [ActiveRecord("Promotion"), JoinedBase] > > public class PromotionRecord : ActiveRecordBase<PromotionRecord> > > { > > > } > > > [ActiveRecord("CustomPromotion")] > > public class CustomPromotionRecord : PromotionRecord > > { > > [CompositeUserType(typeof(MoneyCompositeUserType), new string[] > > { "MinimumPurchaseAmount", "MinimumPurchaseCurrencyId" })] > > public Money MinimumPurchaseAmount { get; set; } > > > } > > > When I turn off inheritence and use > > CustomPromotionRecord : ActiveRecordBase<CustomPromotionRecord > the > > composite type is saved perfectly. > > > Has anyone experienced this problem? > > > Thanks > > Michael
-- You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en.
