- Code: Select all
dal = queryService.findByQuery("select dal from DatasetAnnotationLink as dal " \
"join fetch dal.child as fileAnn " \
"join fetch fileAnn.file " \
"join dal.parent as dataset " \
"where dataset.id = :id and " \
"fileAnn.ns = :ns ", params)
does this retrieve all attached files within the dataset "id" and for the namespace "ns"?
or retrieve just one of them randomely?
if it is just one of them, I want to retrieve all of them (and their file names)
BK