College.java
/*
* +====================================================================+
* | Copyright (C) 2015 Rochester Institute of Technology, |
* | 103 Lomb Memorial Drive, Rochester, NY - 14623 |
* | All Rights Reserved. |
* +====================================================================+
* FILENAME
* College.java
*
* AUTHOR
* @author mhickson
*
* =====================================================================
*/
package edu.rit.coopeval.model;
import javax.persistence.*;
@Entity
@Table(name = "COLLEGE")
public class College extends AuditableEntity {
@Id
@Column(name = "COLLEGEID", nullable = false, insertable = true, updatable = true, precision = 0)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "collegeId_seq")
@SequenceGenerator(name = "collegeId_seq", sequenceName = "SEQ_Form_formId", allocationSize = 1)
private long collegeId;
@Column(name = "COLLEGENAME", nullable = true, insertable = true, updatable = true, length = 64)
private String collegeName;
public long getCollegeId() {
return collegeId;
}
public void setCollegeId(long collegeId) {
this.collegeId = collegeId;
}
public String getCollegeName() {
return collegeName;
}
public void setCollegeName(String collegeName) {
this.collegeName = collegeName;
}
}