Package com.sandrini.sandelivery.model

Examples of com.sandrini.sandelivery.model.Post


    return getSession().createQuery("from Post order by description")
        .list();
  }

  public void deletePost(Long postId) {
    Post post = getPost(postId);
    if (post != null) {
      getSession().delete(post);
    }
  }
View Full Code Here


    }
  }

  public void createPost(String title, String description, Date date,
      String autor) {
    Post post = new Post();
    post.setTitle(title);
    post.setDescription(description);
    post.setAutor(autor);
    post.setDate(date);
    blogDao.createPost(post);
  }
View Full Code Here

TOP

Related Classes of com.sandrini.sandelivery.model.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.