testdemo02.java

来自「java 框架核心技术编程」· Java 代码 · 共 23 行

JAVA
23
字号
package org.lxh.test;

import org.lxh.factory.DAOFactory;
import org.lxh.vo.Course;

public class TestDemo02 {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		// 知道课程编号
		// 知道学生编号
		int cid = 1;
		int sid = 1;
		Course c = DAOFactory.getCourseDAOInstance().queryByCId(cid) ;
		c.getSids().remove(new Integer(sid)) ;
		DAOFactory.getCourseDAOInstance().update(c) ;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?