WeblogServiceImpl.java from crlove at Krugle
Show WeblogServiceImpl.java syntax highlighted
package com.witfriend.arthemis.service.impl;
import java.io.Serializable;
import org.springframework.transaction.annotation.Transactional;
import com.witfriend.arthemis.domain.Weblog;
import com.witfriend.arthemis.domain.Weblogs;
import com.witfriend.arthemis.domain.exception.weblog.WeblogExistedException;
import com.witfriend.arthemis.domain.exception.weblog.WeblogNotFoundException;
import com.witfriend.arthemis.service.WeblogService;
/**
* DOCUMENT ME!
* @author wangyz
* @since 2006.10.05
* @version $Id$
*/
@Transactional
public class WeblogServiceImpl implements WeblogService {
public Serializable create(Weblog weblog) throws WeblogExistedException {
return weblog.create();
}
@Transactional(readOnly = true)
public Weblog load(Serializable id) throws WeblogNotFoundException {
return Weblogs.view(id);
}
}
See more files for this project here