[jboss-user] [Beginners Corner] - Re: Basic CMR Question

2006-09-02 Thread bronks
"ianfmc" wrote : ... | | ... | | * @ejb.interface-method view-type="remote" | | ... | | | | CMR-Methods have always to be local. Perhaps this is the reason. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969035#396903

[jboss-user] [Beginners Corner] - Re: Composite Primary Key in an EntityBean (CMP) - XDoclet

2006-08-21 Thread bronks
"SmokingAPipe" wrote : Are you really sure that you want to have a composite primary key? From what I understand that is almost always a bad idea. | Oh, yes. In such cases composite primary keys are absolutely usual an necessary. View the original post : http://www.jboss.com/index.html?modul

[jboss-user] [Beginners Corner] - Re: Composite Primary Key in an EntityBean (CMP) - XDoclet

2006-08-20 Thread bronks
I have found the mistake: It was the sub class "PrimaryKey" and this: * @ejb.pk class="OrderItemBean.PrimaryKey" It generated a primary class in the wrong package ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966318#3966318 Reply to the post : http://w

[jboss-user] [Beginners Corner] - Re: Composite Primary Key in an EntityBean (CMP) - XDoclet

2006-08-20 Thread bronks
"lafr" wrote : Add | * @ejb.pk-field | to the getters comment of the PK-fields. | Thanks. I have done this but i am getting the following Deploymenterror: anonymous wrote : [verifier] EJB spec violation: | Bean : OrderItem | Method : public OrderItemBean$PrimaryKey ejbCreate

[jboss-user] [Beginners Corner] - Composite Primary Key in an EntityBean (CMP) - XDoclet

2006-08-19 Thread bronks
- PK | article - varchar | amount - float I do not know how to code that. I have used the search, google ... etc ... Please show me a code for an entity bean with a composite key. Thanks Bronks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p

[jboss-user] [Beginners Corner] - Re: Simple SessionBean --- ClassCastException

2006-08-18 Thread bronks
@jaikiran: Much thanks! It was a similar problem. I had a mistake in the packaging configuration and packed the servlet in the JAR and the WAR. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966039#3966039 Reply to the post : http://www.jboss.com/index.htm

[jboss-user] [Beginners Corner] - Simple SessionBean --- ClassCastException

2006-08-18 Thread bronks
vlet i am getting an java.lang.ClassCastException in the servlet at line marked with ">>>>>>>". I have spent 4 hour and can not find a mistake. Please take a look at my code an tell me what is wrong. Thanks Bronks package testProjekt; |