// Path: SpringBoot-Druid/src/main/java/com/lengchuan/springBoot/druid/mapper/cluster/ClassMapper.java
// public interface ClassMapper {
// 
//     int insert(Class c);
// }
// 
// Path: SpringBoot-Druid/src/main/java/com/lengchuan/springBoot/druid/model/Class.java
// public class Class implements Serializable {
// 
//     private int id;
// 
//     private String className;
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public String getClassName() {
//         return className;
//     }
// 
//     public void setClassName(String className) {
//         this.className = className;
//     }
// }


import com.lengchuan.springBoot.druid.mapper.cluster.ClassMapper;
import com.lengchuan.springBoot.druid.model.Class;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
package com.lengchuan.springBoot.druid.service;


/**
 * @author lengchuan <lishuijun1992@gmail.com>
 * @date 17-4-4
 */
@Service
public class ClassService {

    @Autowired
    private ClassMapper classMapper;

    @Transactional
// Path: SpringBoot-Druid/src/main/java/com/lengchuan/springBoot/druid/mapper/cluster/ClassMapper.java
// public interface ClassMapper {
// 
//     int insert(Class c);
// }
// 
// Path: SpringBoot-Druid/src/main/java/com/lengchuan/springBoot/druid/model/Class.java
// public class Class implements Serializable {
// 
//     private int id;
// 
//     private String className;
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public String getClassName() {
//         return className;
//     }
// 
//     public void setClassName(String className) {
//         this.className = className;
//     }
// }


// Path: SpringBoot-Druid/src/main/java/com/lengchuan/springBoot/druid/service/ClassService.java
import com.lengchuan.springBoot.druid.mapper.cluster.ClassMapper;
import com.lengchuan.springBoot.druid.model.Class;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

package com.lengchuan.springBoot.druid.service;


/**
 * @author lengchuan <lishuijun1992@gmail.com>
 * @date 17-4-4
 */
@Service
public class ClassService {

    @Autowired
    private ClassMapper classMapper;

    @Transactional
    public boolean createClass(Class c) {