Package models.japidsample

Examples of models.japidsample.Post


    List<Post> posts = new ArrayList<Post>();
    Author a = new Author();
    a.name = "冉兵";
    a.birthDate = new Date();
    a.gender = 'M';
    Post p = new Post();
    p.author = a;
    p.content = "long time ago...";
    p.postedAt = new Date();
    p.title = "post 1";
    posts.add(p);
    p = new Post();
    p.author = a;
    p.content = "way too long time ago...";
    p.postedAt = new Date();
    p.title = "post 2";
    posts.add(p);
View Full Code Here


    Author a = new Author();
    a.name = "作者";
    a.birthDate = new Date();
    a.gender = 'm';

    final Post p = new Post();
    p.setAuthor(a);
    p.setContent("这是一个很好的内容开始和结束都很好. ");
    p.setPostedAt(new Date());
    p.setTitle("测试");

    List<Post> posts = new ArrayList<Post>();

    for (int i = 0; i < 500; i++) {
      posts.add(p);
View Full Code Here

    Author a = new Author();
    a.name = "作者";
    a.birthDate = new Date();
    a.gender = 'm';

    final Post p = new Post();
    p.setAuthor(a);
    p.setContent("这是一个很好的内容开始和结束都很好. ");
    p.setPostedAt(new Date());
    p.setTitle("测试");

    List<Post> posts = new ArrayList<Post>();

    for (int i = 0; i < 5; i++) {
      posts.add(p);
View Full Code Here

TOP

Related Classes of models.japidsample.Post

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.