Para a dúvida do meu amigo elton segue,
package salao.entidade;
import salao.framework.entidade.Entidade;
/**
* @author ELTON TOEBE
* @since 15/11/2010
*/
public class Aluno extends Entidade {
/**
* Codigo do aluno
*/
private Long cdAluno;
/**
* Numero da matricula do aluno
*/
private Long nrMatricula;
/**
* Curso do aluno
*/
private Curso curso;
/**
* @return the {@link #cdAluno}
*/
public Long getCdAluno() {
return cdAluno;
}
/**
* @param cdAluno
* the {@link #cdAluno} to set
*/
public void setCdAluno(Long cdAluno) {
this.cdAluno = cdAluno;
}
/**
* @return the {@link #nrMatricula}
*/
public Long getNrMatricula() {
return nrMatricula;
}
/**
* @param nrMatricula
* the {@link #nrMatricula} to set
*/
public void setNrMatricula(Long nrMatricula) {
this.nrMatricula = nrMatricula;
}
/**
* @return the {@link #curso}
*/
public Curso getCurso() {
return curso;
}
/**
* @param curso
* the {@link #curso} to set
*/
public void setCurso(Curso curso) {
this.curso = curso;
}
}