Hi,
i've run into a problem which i can't seem to get past
my class PromotionByClub has two components of the type Moneyeffect
Code:
<Serializable(), [Class](nametype:=GetType(PromotionByClub), table:="Promotions_PromotionByClub")> Public Class PromotionByClub
<Id(0, Access:="field", name:="mId", Column:="id", TypeType:=GetType(Integer), unsavedvalue:="0"), Generator(1, Class:="identity")> _
Private mId As Integer
<ComponentProperty(2, access:="field", componenttype:=GetType(MoneyEffect), name:="mAdminChange")> _
Private mAdminChange As new MoneyEffect
<Component(2, access:="field", componenttype:=GetType(MoneyEffect), name:="mJoiningChange")> _
Private mJoiningChange As new MoneyEffect
end class
trouble is in the class moneyeffect the mappings for the two are the same
Code:
<Serializable(), Component(classtype:=GetType(MoneyEffect), access:="field")> Public Class MoneyEffect
<[Property](access:="field", name:="mChanged", column:="changed", typetype:=GetType(Boolean))> _
Private mChanged As Boolean
<[Property](access:="field", name:="mType", column:="moneyeffecttype", typetype:=GetType(MoneyEffectType))> _
Private mType As MoneyEffectType
<[Property](access:="field", name:="mValue", column:="effectvalue", typetype:=GetType(Double))> _
Private mValue As Double
..snip..
so when i try and save i am mapping the two to the same columns
there must be a way around this i guess, but i have been unable to find it..
any help would be so appreciated!