Hi, I know there is the configure method of a decorator which runs
before the object is populated. Is there a method that runs after the
object is populated? I have a onetomany relationship which creates
lots of objects which are basically a "name-value" pair, which could
have a performance impact (the cache has to run out of space at some
point!) so I'd like to parse these into a simple struct which is
stored in the User object and then destroy all the onetomany objects.
Transfer.xml Snippet:
<package name="member">
<object name="User" table="USERS" decorator="com.model.member.User">
<id name="UserID" column="user_id" type="GUID" generate="true"
/>
<property name="Email" column="user_email" type="string"
nullable="false" />
<onetomany name="UserAttributes" lazy="false" proxied="false">
<link to="member.UserAttributes" column="user_id" />
<collection type="struct">
<key property="Key" />
</collection>
</onetomany>
</object>
<object name="UserAttributes" table="USERATTRIBUTES">
<id name="UserAttributeID" column="userattribute_id"
type="numeric"
generate="true" />
<property name="Key" column="userattribute_key" type="string" />
<property name="Value" column="userattribute_value"
type="string" />
</object>
</package>
Thanks!
--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
You received this message because you are subscribed to the Google Groups
"transfer-dev" 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/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---