set up the attachmentMapper and attachmentManager in Spring
namedQuery attachment