[jboss-user] [EJB 3.0] - Re: ClassCastException: $Proxy94 cannot be cast ...

2008-04-09 Thread ttrepper
Hi jaikiran, hi ALRubinger, thank you for your replies and your hints. I have the same anticipation, that in my application is something wrong with the classes (and class-loaders). My question now is how an ear-file is best packed and with which structure? I am developing in eclipse and I

[jboss-user] [EJB 3.0] - ClassCastException: $Proxy94 cannot be cast ...

2008-04-08 Thread ttrepper
Hi all, I am using JBoss 4.2.2GA and Java(TM) SE Runtime Environment (build 1.6.0_05-b13) for my development environment. I have a stateless session bean called UtilityBean and an interfaces called UtilityBeanLocal, marked with @Local and the bean marked with @stateless and implements

[jboss-user] [EJB 3.0] - Mapping-Problem with Primary-Key containing three Foreign-Ke

2007-09-22 Thread ttrepper
Hi all, I am sorry, but i cannot get it working. I have three tables with a PK beeing a single attribute. And then I have another table, with three attributes each referencing the PK of one table. And these three attributes are at the same time the PrimaryKey (PK) SQL looks like this: |

[jboss-user] [EJB 3.0] - [SOLVED] CascadeType.PERSIST question

2007-09-20 Thread ttrepper
Yes, that worked, thank you very much. :-) Thomas View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4086619#4086619 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4086619 ___

[jboss-user] [EJB 3.0] - Re: CascadeType.PERSIST question

2007-09-10 Thread ttrepper
Thank you very much for your answer - but I think your suggestion will not work, because the Entity PartyIsPerson extends the Entity Party, which has a generated key like this: @Id | @SequenceGenerator(name=party_id, sequenceName=seq_partyid) |

[jboss-user] [EJB 3.0] - Re: CascadeType.PERSIST question

2007-09-10 Thread ttrepper
Yes, thats right, in the meanwhile, the line with setting the ID explicitly is removed now. That line was for test-purpose, so now there is only the automatic generation, which is working - still except storing of the nested customization with the same new generated key... Any ideas? View the

[jboss-user] [EJB 3.0] - Re: CascadeType.PERSIST question

2007-09-09 Thread ttrepper
Hi waynebylor, thank you for your answer - sorry, i forget to attach the code. Here it is: package com.auctonova.ejb.persistence; | | import java.io.Serializable; | | import javax.persistence.Entity; | import javax.persistence.Column; | import javax.persistence.Id; | import

[jboss-user] [EJB 3.0] - CascadeType.PERSIST question

2007-09-08 Thread ttrepper
Hi all, I am running into troubles with the cascdetype, Please imagine the following szenario: SQL (tables) | CREATE TABLE Party ( | PartyID BIGINT DEFAULT nextval('seq_PartyID') NOT NULL, | CONSTRAINT PK_Party PRIMARY KEY (PartyID) | ); | | CREATE TABLE PartyIsPerson (

[jboss-user] [EJB 3.0] - AnnotationException: xxx not mapped to a single property...

2007-08-31 Thread ttrepper
Hi all, i get the following AnnotationException, and i donĀ“t know why? SQL: | CREATE TABLE Party ( | PartyID BIGINT DEFAULT nextval('seq_PartyID') NOT NULL, | DateAdded TIMESTAMP DEFAULT current_timestamp, | ActiveUntil TIMESTAMP, | CONSTRAINT PK_Party PRIMARY KEY