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 ...
}
I have a CMP EntityBean FooOwner whose primary key is of type PK.
Now, in FooOwner, I can have a CMP field of type PK and mark it in the
ejb-jar as primkey-field. Question: How do I control the database
representation of PK? By default, it gets represented as a BLOB. How
do I have Orion serialize/deserialize PK as a String. I have tried most
everything with the primkey-mapping tag -- properties, fields, ...
Can't figure it out!
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.
Please, I have spent the better part of two days on this and need some
clarification (and sleep).
Thanks,
Vidur
--
Vidur Dhanda
Active Solutions
tel: 617/566-1252
[EMAIL PROTECTED]
www.active-solutions-inc.com