the hbm files do not contain the definition for the composite type.

<joined-subclass name="CustomPromotionRecord, Business"
table="PokerPromotion">
      <key column="PokerPromotionId" />
      <property name="PurchaseMatchPercentage" access="property"
type="System.Decimal">
        <column name="PurchaseMatchPercentage" not-null="true"/>
      </property>
      <property name="PurchaseWindowInDays" access="property"
type="Int32">
        <column name="PurchaseWindowInDays" not-null="true"/>
      </property>
      <property name="RedemptionWindowInDays" access="property"
type="Int32">
        <column name="RedemptionWindowInDays" not-null="true"/>
      </property>
      <property name="MaximumPurchases" access="property"
type="Int32">
        <column name="MaximumPurchases" not-null="true"/>
      </property>
      <property name="PokerPointsMoneyRatio" access="property"
type="Int32">
        <column name="PokerPointsMoneyRatio" not-null="true"/>
      </property>
    </joined-subclass>

On Jan 7, 3:15 pm, Mauricio Scheffer <[email protected]>
wrote:
> Please enable the debug mode and post the generated hbms
>
> http://using.castleproject.org/display/AR/Configuration+Reference#Con...
>
> 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- Hide quoted text -
>
> - Show quoted text -
-- 
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.


Reply via email to