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
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 {
| //
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=bb&op=viewtopic&p=3876456#3876456
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876456
--
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=bb&op=viewtopic&p=3839827#3839827
Reply to the post :
http://www.jboss.org/index.html?module=
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 :
http://www.jboss.org/index.html?modul
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=bb&op=viewtopic&p=3838464#3838464
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=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 w
primkey-field="id" is missing in the @ejb.bean tag.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835910#3835910
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835910