ArticleServiceImpl.java from crlove at Krugle
Show ArticleServiceImpl.java syntax highlighted
package com.witfriend.arthemis.service.impl;
import java.io.Serializable;
import org.springframework.transaction.annotation.Transactional;
import com.witfriend.arthemis.domain.Article;
import com.witfriend.arthemis.domain.Articles;
import com.witfriend.arthemis.domain.exception.article.ArticleNotFoundException;
import com.witfriend.arthemis.domain.exception.category.CategoryNotFoundException;
import com.witfriend.arthemis.service.ArticleService;
/**
* DOCUMENT ME!
* @author wangyz
* @since 2006.10.05
* @version $Id$
*/
@Transactional
public class ArticleServiceImpl implements ArticleService {
public Serializable create(Article article) throws CategoryNotFoundException {
return article.post();
}
@Transactional(readOnly = true)
public Article load(Serializable id) throws ArticleNotFoundException {
return Articles.read(id);
}
}
See more files for this project here