예제 #1
0
 public Pixels getPixels() {
   return sf.getQueryService()
       .findByQuery(
           "select p from Dataset d "
               + "join d.imageLinks dil "
               + "join dil.child img "
               + "join img.pixels p where d.id = "
               + d.getId(),
           null);
 }
예제 #2
0
  /**
   * checks for the necessary fields and initializes the {@link ImportLibrary}
   *
   * @throws Exception
   */
  public void setUp() throws Exception {
    d = new Dataset();
    d.setName(UUID.randomUUID().toString());
    d = sf.getUpdateService().saveAndReturnObject(d);

    File tinyTest = ResourceUtils.getFile("classpath:" + FILENAME);

    // super.put( tinyTest, d );
    // super.setUp();
  }