cancel
Showing results for 
Search instead for 
Did you mean: 

How to control createTablePolicy of SQL tableReference that has a non-SQL sourceDirectory

ron_1
Star Contributor
Star Contributor

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?

2 REPLIES 2

Olivier_Grisel
Star Contributor
Star Contributor

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.

Thanks.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.