// Path: Server/src/com/hufeiya/entity/Course.java
// public class Course implements java.io.Serializable {
// 
// 	// Fields
// 
// 	private Integer cid;
// 	private User user;
// 	private String courseName;
// 	private String startDates;
// 	private Integer numberOfWeeks;
// 	private Set signInfos = new HashSet(0);
// 
// 	// Constructors
// 
// 	/** default constructor */
// 	public Course() {
// 	}
// 
// 	/** full constructor */
// 	public Course(User user, String courseName, String startDates,
// 			Integer numberOfWeeks, Set signInfos) {
// 		this.user = user;
// 		this.courseName = courseName;
// 		this.startDates = startDates;
// 		this.numberOfWeeks = numberOfWeeks;
// 		this.signInfos = signInfos;
// 	}
// 
// 	// Property accessors
// 
// 	public Integer getCid() {
// 		return this.cid;
// 	}
// 
// 	public void setCid(Integer cid) {
// 		this.cid = cid;
// 	}
// 
// 	public User getUser() {
// 		return this.user;
// 	}
// 
// 	public void setUser(User user) {
// 		this.user = user;
// 	}
// 
// 	public String getCourseName() {
// 		return this.courseName;
// 	}
// 
// 	public void setCourseName(String courseName) {
// 		this.courseName = courseName;
// 	}
// 
// 	public String getStartDates() {
// 		return this.startDates;
// 	}
// 
// 	public void setStartDates(String startDates) {
// 		this.startDates = startDates;
// 	}
// 
// 	public Integer getNumberOfWeeks() {
// 		return this.numberOfWeeks;
// 	}
// 
// 	public void setNumberOfWeeks(Integer numberOfWeeks) {
// 		this.numberOfWeeks = numberOfWeeks;
// 	}
// 
// 	public Set getSignInfos() {
// 		return this.signInfos;
// 	}
// 
// 	public void setSignInfos(Set signInfos) {
// 		this.signInfos = signInfos;
// 	}
// 
// }


import java.util.List;
import java.util.Set;
import org.hibernate.LockOptions;
import org.hibernate.Query;
import org.hibernate.criterion.Example;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.hufeiya.entity.Course;
package com.hufeiya.DAO;




/**
 * A data access object (DAO) providing persistence and search support for
 * Course entities. Transaction control of the save(), update() and delete()
 * operations can directly support Spring container-managed transactions or they
 * can be augmented to handle user-managed Spring transactions. Each of these
 * methods provides additional information for how to configure it for the
 * desired type of transaction control.
 * 
 * @see com.hufeiya.DAO.Course
 * @author MyEclipse Persistence Tools
 */
public class CourseDAO extends BaseHibernateDAO {
	private static final Logger log = LoggerFactory.getLogger(CourseDAO.class);
	// property constants
	public static final String COURSE_NAME = "courseName";
	public static final String START_DATES = "startDates";
	public static final String NUMBER_OF_WEEKS = "numberOfWeeks";

// Path: Server/src/com/hufeiya/entity/Course.java
// public class Course implements java.io.Serializable {
// 
// 	// Fields
// 
// 	private Integer cid;
// 	private User user;
// 	private String courseName;
// 	private String startDates;
// 	private Integer numberOfWeeks;
// 	private Set signInfos = new HashSet(0);
// 
// 	// Constructors
// 
// 	/** default constructor */
// 	public Course() {
// 	}
// 
// 	/** full constructor */
// 	public Course(User user, String courseName, String startDates,
// 			Integer numberOfWeeks, Set signInfos) {
// 		this.user = user;
// 		this.courseName = courseName;
// 		this.startDates = startDates;
// 		this.numberOfWeeks = numberOfWeeks;
// 		this.signInfos = signInfos;
// 	}
// 
// 	// Property accessors
// 
// 	public Integer getCid() {
// 		return this.cid;
// 	}
// 
// 	public void setCid(Integer cid) {
// 		this.cid = cid;
// 	}
// 
// 	public User getUser() {
// 		return this.user;
// 	}
// 
// 	public void setUser(User user) {
// 		this.user = user;
// 	}
// 
// 	public String getCourseName() {
// 		return this.courseName;
// 	}
// 
// 	public void setCourseName(String courseName) {
// 		this.courseName = courseName;
// 	}
// 
// 	public String getStartDates() {
// 		return this.startDates;
// 	}
// 
// 	public void setStartDates(String startDates) {
// 		this.startDates = startDates;
// 	}
// 
// 	public Integer getNumberOfWeeks() {
// 		return this.numberOfWeeks;
// 	}
// 
// 	public void setNumberOfWeeks(Integer numberOfWeeks) {
// 		this.numberOfWeeks = numberOfWeeks;
// 	}
// 
// 	public Set getSignInfos() {
// 		return this.signInfos;
// 	}
// 
// 	public void setSignInfos(Set signInfos) {
// 		this.signInfos = signInfos;
// 	}
// 
// }


// Path: Server/src/com/hufeiya/DAO/CourseDAO.java
import java.util.List;
import java.util.Set;
import org.hibernate.LockOptions;
import org.hibernate.Query;
import org.hibernate.criterion.Example;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.hufeiya.entity.Course;

package com.hufeiya.DAO;




/**
 * A data access object (DAO) providing persistence and search support for
 * Course entities. Transaction control of the save(), update() and delete()
 * operations can directly support Spring container-managed transactions or they
 * can be augmented to handle user-managed Spring transactions. Each of these
 * methods provides additional information for how to configure it for the
 * desired type of transaction control.
 * 
 * @see com.hufeiya.DAO.Course
 * @author MyEclipse Persistence Tools
 */
public class CourseDAO extends BaseHibernateDAO {
	private static final Logger log = LoggerFactory.getLogger(CourseDAO.class);
	// property constants
	public static final String COURSE_NAME = "courseName";
	public static final String START_DATES = "startDates";
	public static final String NUMBER_OF_WEEKS = "numberOfWeeks";

	public void save(Course transientInstance) {