ImportConfig deprecated classes
Posted: Mon Oct 22, 2018 12:57 pm
Hi,
I'm importing images using Java and following the example on the Java Language Bindings help page.
Although I am able to succesfully upload and link images I note that
both targetClass and targetId are deprecated.
What is the correct way to set these parameters?
I'm using 5.4.0 but I see that the example code is still the same for 5.4.9
Thanks in advance
Derek
I'm importing images using Java and following the example on the Java Language Bindings help page.
- Code: Select all
ImportConfig config = new ome.formats.importer.ImportConfig();
...
config.targetClass.set("omero.model.Dataset");
config.targetId.set(datasetID);
Although I am able to succesfully upload and link images I note that
both targetClass and targetId are deprecated.
What is the correct way to set these parameters?
I'm using 5.4.0 but I see that the example code is still the same for 5.4.9
Thanks in advance
Derek