if(post.getModifiedId()!=null) {
User modifiedBy = userDao.get(post.getModifiedId());
post.setModifiedBy(modifiedBy);
}
if(post.getCategoryId()!=null) {
PostCategory category = postCategoryDao.get(post.getCategoryId());
post.setCategory(category);
}
if(post.getProjectId()!=null) {
Project project = projectDao.get(post.getProjectId());
post.setProject(project);