码迷,mamicode.com
首页 >  
搜索关键字:teacher    ( 1327个结果
hibernate学习:联合主键
一:直接看程序 {CSDN:CODE:599457} 二:源码分析 (1)在Teacher中将作为联合主键的属性都加上@id注解 @Id private int id; @Id private String name; (2)在Teacher类,加上注解@IdClass(value = TeacherPK.class)置顶联合主键类 (3)Teache...
分类:Web程序   时间:2015-02-06 18:52:23    阅读次数:116
hibernate学习:HelloWorld_Annotation
一:HelloWorld注解实现 二:程序源码 {CSDN:CODE:598345} 三:Console输出 Hibernate: insert into Teacher (name, title, id) values (?, ?, ?) 四:知识总结   与 HibernateHelloWorld_xml不用的是: (1)m...
分类:Web程序   时间:2015-02-05 14:58:50    阅读次数:120
hdu 4341 分组背包
http://acm.hdu.edu.cn/showproblem.php?pid=4341 Problem Description Homelesser likes playing Gold miners in class. He has to pay much attention to the teacher to avoid being noticed. So he...
分类:其他好文   时间:2015-02-05 11:22:52    阅读次数:163
hdu4322 最大费用最大流
http://acm.hdu.edu.cn/showproblem.php?pid=4322 Problem Description There are N candies and M kids, the teacher will give this N candies to the M kids. The i-th kids for the j-th candy has a pr...
分类:其他好文   时间:2015-02-04 13:04:31    阅读次数:218
教师值班表
--教师值班alter proc teacher_OnDuty(@hid int)asset nocount onbegindeclare @bdate datetime,@edate datetime,@i int,@count_num int,@teacher_num varchar(50),@...
分类:其他好文   时间:2015-02-03 12:31:56    阅读次数:310
传递参数的讲解
[root@teacher lianxi]# cat weizhi.sh #!/bin/bashecho filename $0echo 第一个位置变量 $1echo 第2个位置变量 $2echo 第3个位置变量 $3echo 第4个位置变量 $4echo 第5个位置变量 $5[root...
分类:其他好文   时间:2015-02-01 17:42:52    阅读次数:156
MyBatis学习总结(五)——实现关联表查询
一、一对一关联1.1、提出需求 根据班级id查询班级信息(带老师的信息)1.2、创建表和数据 创建一张教师表和班级表,这里我们假设一个老师只负责教一个班,那么老师和班级之间的关系就是一种一对一的关系。 1 CREATE TABLE teacher( 2 t_id INT PRIMARY ...
分类:其他好文   时间:2015-02-01 17:35:38    阅读次数:178
函数的用法
函数功能的使用[root@teacher lianxi]# vim function.sh[root@teacher lianxi]# chmod +x function.sh [root@teacher lianxi]# ./function.sh please key in first num1...
分类:其他好文   时间:2015-02-01 17:22:55    阅读次数:152
&&与||符号
[dehua@teacher ~]$ [ "$(id -u)" -eq "0" ] && echo you are root || echo you must be rootyou must be root[dehua@teacher ~]$ id -u501====================...
分类:其他好文   时间:2015-02-01 17:21:37    阅读次数:254
If youwant to be loved, be lovable.你若盛开,清风自来
To summarize a year of time again.I use theSB of way for one year and half,so I want to write my feels about English. I thank for my teacher mi .he told me a great many thing. forexample ' 'sometimes ,he often ask me ."what' s your name? where are y...
分类:其他好文   时间:2015-01-31 16:16:05    阅读次数:1165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!