Hello,
The following is a piece of code. I need to index PNAME alone and PNAME and PID as a group... I tried with the following piece of code, there is no error, but in mysql when I checked it was not coming properly....
public class Parts extends BaseObject implements Serializable{
private int pid;
private String partname;
/**
* @return Returns the partname.
* @hibernate.property
* @hibernate.column name="PNAME"
* index="e1_index"
* index="e2_index"
*/
public String getPartName() {
return this.partname;
}
/**
* @return Returns the pid.
* @hibernate.property
* @hibernate.column name="PID" index="e1_index" unique="true"
*/
public Integer getPid() {
return this.pid;
}
}
Thanks
HKG
|