回答を探すときに同様の質問がありましたが、誰も私の要求に答えませんでした。空白の最終的なフィールドを初期化できません
私は、次のエラーを得たモデル総会 "
@Entity
@Scope("prototype")
@Table(name="MEETINGS")
public class Meeting {
@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer id;
@NotEmpty
@Column(name="name", nullable=false)
private String name;
@NotEmpty
@Column(name="description", nullable=false)
private String description;
@NotEmpty
@Column(name="allowStartStopRecording", nullable=false)
private String allowStartStopRecording;
@NotEmpty
@Column(name="autoStartRecording", nullable=false)
private String autoStartRecording;
@NotEmpty
@Column(name="record", nullable=false)
private String record;
@NotEmpty
@Column(name="voiceBridge", nullable=false)
private String voiceBridge;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getAllowStartStopRecording() {
return allowStartStopRecording;
}
public void setAllowStartStopRecording(String allowStartStopRecording) {
this.allowStartStopRecording = allowStartStopRecording;
}
public String getAutoStartRecording() {
return autoStartRecording;
}
public void setAutoStartRecording(String autoStartRecording) {
this.autoStartRecording = autoStartRecording;
}
public String getRecord() {
return record;
}
public void setRecord(String record) {
this.record = record;
}
public String getVoiceBridge() {
return voiceBridge;
}
public void setVoiceBridge(String voiceBridge) {
this.voiceBridge = voiceBridge;
}
}
とDAO「MeetingDAO」を作成しようとしているときに、
public interface MeetingDAO {
Meeting meeting;
String createMeeting();
String deleteMeeting();
String getMeetings();
String updateMeeting();
}
を作成しました:空白の最終フィールド会議は持っていないかもしれませんミーティングミーティングを含む行で初期化されました。
ありがとうございます。
さまざまな種類があり、パラメータだろう、私はテストしていた、帰国のタイプのために、よくこの に注意を払っていない、正しいですしようとしていると と働いている – Najoua