Package org.springside.examples.showcase.common.entity

Examples of org.springside.examples.showcase.common.entity.Reply


    assertNull(subject);
  }

  @Test
  public void createReply() {
    Reply reply = new Reply();
    reply.setTitle("GoodAfternoon");
    reply.setContent("Good Afternoon!!!");
    reply.setModifyTime(new Date());

    User user = userDao.get("1");
    reply.setUser(user);

    Subject subject = subjectDao.get("1");
    reply.setSubject(subject);

    replyDao.save(reply);
    replyDao.flush();
  }
View Full Code Here


    replyDao.flush();
  }

  @Test
  public void updateReply() {
    Reply reply = replyDao.getDetail("2");
    reply.setTitle("GoodEvening");
    reply.setContent("Good Evening!!!");

    replyDao.save(reply);
    replyDao.flush();
  }
View Full Code Here

TOP

Related Classes of org.springside.examples.showcase.common.entity.Reply

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.