日期:2014-05-20 浏览次数:20879 次
@Entity @Table(name = "crm_code_clientSort") public class ClientSort { @Id @GeneratedValue(generator = "uuidGenerator") @GenericGenerator(name = "uuidGenerator", strategy = "uuid") @Column(length = 32) private String id;//标识 @Column(length = 6) private String code; //编号 @Column(length = 20) private String name; //名称 }
@Controller @Scope("prototype") @ParentPackage(value = "abc-default") @Namespace("/crm/backlog") @Results( { @Result(name = "showInfo", location = "/jsp/crm/backlog/showInfo.jsp"), @Result(name = "common", location = "/jsp/crm/backlog/list.jsp"), @Result(name = "addBacklog", location = "/jsp/crm/backlog/addBacklog.jsp"), @Result(name = "updateBacklog", location = "/jsp/crm/backlog/updateBacklog.jsp") }) @InterceptorRef("isLogin") public class BacklogAction { @Resource private CRM_BacklogService cRM_backlogService; //此对象是spring自动注入的,因为加了@Resource标签 @Resource private CodeBean codeBean; private Object fere; private Backlog dto; //以下略 }