Hi, can you please tell me what did you mean by getters on PK class?
I'm getting the same problem and not able to find what is wrong in my query or
PK class. Thanks.
PK class is as follow:
public class SMPPAgentProfileParmsPK implements Serializable {
|
My mistake in earlier post, I was little confused as all other CMPs in my
project does not have getter and those still works!!
Anyway I tried putting getter methods in PK class but still getting same error.
The query jboss is generating is missing FROM a expression before FROM.
It is generating
fixed!! there were no getters on the PK Class.. no I have another problem
see next thread
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3876456#3876456
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3876456
The problem turned out to be inherited getter/setter methods for the key fields.
Adding
public Long getId() {
return super.getId();
}
public void setId(Long id) {
super.setId(id);
}
to the derived class fixed it.
View the original post :
I forgot to say that it is the key fields in the key class that were inherited. The
getter/setters in the bean class were not inherited.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3839827#3839827
Reply to the post :
I am pretty sure it is a bug in the pk definition in the DDs.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3838464#3838464
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838464
I have the same problem. I also don't have a primkey-field in the @ejb.bean tag, but
that is because I have a composite key and a primary key class identified with
@ejb.pk. primkey-field does not work with composite keys. The key fields themselves
are tagged with @ejb.pk-field.
I don't know
primkey-field=id is missing in the @ejb.bean tag.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3835910#3835910
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3835910