Package org.jrest4guice.search.hs.entity

Examples of org.jrest4guice.search.hs.entity.Song


    testCreate(10000, 20000);
  }

  private static void testCreate(final int start, final int times) {
    for (int i = start; i < times; i++) {
      Song song = new Song();
      song.setArtist("群星_" + i);
      song.setName("北京欢迎你");
      song.setLyric("北京欢迎你,welcome to beijing,第29届奥林匹克运动会");
      song.setTime(new Date());
      song.setArtistCityId(i % 8);
      service.addSong(song);
      System.out.println(song.getId()+"      "+i);
    }
  }
View Full Code Here


    testCreate(0, 10000);
  }

  private static void testCreate(final int start, final int times) {
    for (int i = start; i < times; i++) {
      Song song = new Song();
      song.setArtist("群星_" + i);
      song.setName("北京欢迎你");
      song.setLyric("北京欢迎你,welcome to beijing,第29届奥林匹克运动会");
      song.setTime(new Date());
      song.setArtistCityId(i % 8);
      service.addSong(song);
      System.out.println(song.getId()+"      "+i);
    }
  }
View Full Code Here

  @Inject
  private FullTextSession fullTextSession;

  public void init() {
    for (int i = 3; i < 7; i++) {
      Song song = new Song();
      song.setArtist("群星");
      song.setName("北京欢迎你");
      song.setLyric("北京欢迎你,welcome to beijing,第29届奥林匹克运动会");
      song.setTime(new Date());
      song.setArtistCityId(i % 8);
      this.entityManager.create(song);
    }
  }
View Full Code Here

TOP

Related Classes of org.jrest4guice.search.hs.entity.Song

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.