All,
Forgive me if this is a newbie question, but i was unable to find any
information in the list archive. What exactly do i have to do to my entity
bean to avoid the error mentioned in my subject when using the "New RESTful
WebServices from Entity Classes" wizard. I have of course, pasted my code
below. Thanks in advance
--
Thanks,
Louis
File: ConversionJob.java....
import javax.persistence.*;
/**
*
* @author alexanderl
*/
@Entity
public class ConversionJob implements java.io.Serializable {
private Long id;
private byte[] rawAudioData;
private String telephoneNumber;
private String pin;
private String email;
@Column( name="RAW_AUDIO_BYTES" )
@Lob
public byte[] getRawAudioData() { return rawAudioData; }
public void setRawAudioData(byte[] rawAudioData) { this.rawAudioData =
rawAudioData; }
@Column( name="EMAIL" )
public String getEmail() { return email; }
public void setEmail(String email) { this.email = email; }
@Id
@Column( name="ID" )
public long getId() { return id; }
public void setId(long id) { this.id = id; }
@Column( name="PIN" )
public String getPin() { return pin; }
public void setPin(String pin) { this.pin = pin; }
@Column( name="TELEPHONE_NUMBER")
public String getTelephoneNumber() { return telephoneNumber; }
public void setTelephoneNumber(String telephoneNumber) {
this.telephoneNumber = telephoneNumber; }
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields
are not set
if (!(object instanceof NewEntity)) {
return false;
}
ConversionJob other = (ConversionJob) object;
if ((this.id == null && other.id != null) || (this.id != null &&
!this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "com.xyz.ConversionJob[id=" + id + "]";
}
public void submitJob(){
}
}