Sylko Olzscher wrote:
>
> jBoss
>
> To realize an one-to-many relation I need a primary key consists of two
> Strings/VARCHARs: _id and _idforeign. I testet some CMP - EJBs with a single
> key and a primary key class. It works well, but I was a little confused,
> because it's required to fill the <primkey-field>_id</primkey-field> AND the
> <prim-key-class>demo.CkeyPK</prim-key-class> entry in the EJB1.1 descriptor.
> Otherwise it doesn't work.
>
> Now I tried hard to work with a combined key, but deployment failed. (Sorry,
> but the traceback is not so usefull).
>
> Has anyone an idea how to fix this problem.
> Thanks,
> Sylko
>
Hi,
Have you had a look at the examples in testbeans.jar? (the source is
available by cvs checkout zola or
http://www.jboss.org/zip_archives/zola-cvs-sources.zip )
- EnterpriseEntity is an entity with a simple pk (String)
- EntityPK is an entity with a complex PK
Sebastien
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]