Package net.sf.pmr.messageBoards.domain

Examples of net.sf.pmr.messageBoards.domain.MessageImpl


        // topic
        Topic topic = new TopicImpl();
        topic.setTitle("les cl�s de bagnole");

        // create a message idem to the one in the database
        messageToUpdateOrDelete = new MessageImpl();
        messageToUpdateOrDelete.setId(1);
        messageToUpdateOrDelete.setBoard(board);
        messageToUpdateOrDelete.setTopic(topic);
        messageToUpdateOrDelete.setPostedBy(user);
View Full Code Here


        // topic
        Topic topic = new TopicImpl();
        topic.setTitle("my title");

        // create a message idem to the one in the database
        Message message = new MessageImpl();
        message.setBoard(board);
        message.setTopic(topic);
        message.setPostedBy(user);

        // to test Date
        SimpleDateFormat dateFormat = new SimpleDateFormat("dd/mm/yyyy hh:mm");
        Date date = dateFormat.parse("01/01/2001 13:24");

        message.setPostedDate(date);
        message.setContent("super movie! great work");
        message.setPersistanceVersion(1);

        messageMapper.addOrUpdate(message);

        // check
        String query = "select * from MESSAGE where CONTENT='super movie! great work'";
View Full Code Here

TOP

Related Classes of net.sf.pmr.messageBoards.domain.MessageImpl

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.