[JBoss-user] [Persistence CMP/JBoss] - Re: Sql not generating properly

2005-05-29 Thread asdesai
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 { |

[JBoss-user] [Persistence CMP/JBoss] - Re: Sql not generating properly

2005-05-29 Thread asdesai
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

[JBoss-user] [Persistence CMP/JBoss] - Re: Sql not generating properly

2005-05-04 Thread guix
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

[JBoss-user] [Persistence CMP/JBoss] - Re: SQL not generating properly

2004-06-24 Thread degnbol
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 :

[JBoss-user] [Persistence CMP/JBoss] - Re: SQL not generating properly

2004-06-24 Thread degnbol
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 :

[JBoss-user] [Persistence CMP/JBoss] - Re: SQL not generating properly

2004-06-11 Thread loubyansky
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

[JBoss-user] [Persistence CMP/JBoss] - Re: SQL not generating properly

2004-06-10 Thread degnbol
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

[JBoss-user] [Persistence CMP/JBoss] - Re: SQL not generating properly

2004-05-22 Thread ironbird
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