I have a class
@Embeddable
public class CModuleSectionPK implements Serializable {
private static final long serialVersionUID = 9031487275419685579L;
int id;
int cModuleId;
int masterBlockId;
public CModuleSectionPK() {
}
public CModuleSectionPK(int id, int cModuleId, int masterBlockId) {
this.id = id;
this.cModuleId = cModuleId;
this.masterBlockId = masterBlockId;
}
@Column(name="C_MODULE_ID")
public int getCModuleId() {
return cModuleId;
}
public void setCModuleId(int cModuleId) {
this.cModuleId = cModuleId;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Column(name="MASTER_BLOCK_ID")
public int getMasterBlockId() {
return masterBlockId;
}
public void setMasterBlockId(int masterBlockId) {
this.masterBlockId = masterBlockId;
}
...
}
It gave me an error when I do the query
from CModule f where f.cModuleId=?cModuleId
it said the property unresolved
but when I change the property and method to
int cModuleId;
public int getCmoduleId() {
return cmoduleId;
}
public void setCmoduleId(int cModuleId) {
this.cmoduleId = cModuleId;
}
and the query
from CModule f where f.cmoduleId=?cModuleId
it works, why?
Thanks,
Sadr LM
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942091#3942091
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942091
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user