How to control createTablePolicy of SQL tableReference that has a non-SQL sourceDirectory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2012 03:45 PM
I have a SQLDirectory with a tableReference whose sourceDirectory is a MultiDirectory. I want to supply my own dataFile to populate the tableReference. How can I specify the createTablePolicy for the tableReference so that it will load the data in my datafile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2012 06:28 AM
You can invert the relationship between the source multi and the target sql directories:
Put the TableReference
to resolve the field of the SQLDirectory and put and InverseReference
to resolve the field of the multi. That way the table reference should be initializable with the SQLSession of the SQLDirectory and hence it's dataFile
attribute should be taken into account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2012 10:20 AM
Thanks.
