Vidur Dhanda wrote:
>
> OK,
>
> Now I'm thoroughly confused.Would someone please help me before I
> confuse myself even more. Here's the question/scenario:
> I have a primary key,
>
> public class PK implements Serializable {
> public String fooGuts;
>
> constructor/get/Set ...
> }
> The only way it seems to work is by having a String member in the Entity
> bean -- fooGuts. But that seems primitive. I know the EJB 1.1 spec
> says the for _composite_ primary keys ... But to my thinking this is
> more of a OR problem -- I have a CMP field (that happens to be the
> primary key) and I want to control its relational representation. And
> with all the nice OR stuff in Orion, it must be possible. My only
> constraint is that I have to adhere to EJB1.1.
>
You'll need that public string for cmp to work. The primary Key class
should contain the primary key field in your table (as a public field)
so oruion can manipulate it. Take a look at yeh EJB sprec, section
9.4.7.1 and 9.4.7.2
sven
--
======================================================================================
Sven E. van 't Veer
http://www.cachoeiro.net
Java Developer [EMAIL PROTECTED]
======================================================================================