Hi,

isn't it possible to declare one field (or a combination of fields) as PK (in OJB metatadata, not in DB) to allow OJB the creation of unique Idenity objects?
OJB PK fields are independent from the DB PK's.


The creation of Identity objects of the persistent objects is needed to use caching and references (and other internal services).

regards,
Armin

Bobby Lawrence wrote:
Yup - and it doesn't work.
Exception---
org.apache.ojb.broker.PersistenceBrokerException: org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: OJB needs at least one primary key attribute for class objectsRealClass=class org.jlab.mis.services.mics.generated.ComputingJob, objectTopLevelClass=class org.jlab.mis.services.mics.generated.ComputingJob
--Bobby



Robert r. Sanders wrote:

Have you tried it? I am pretty sure it works; I think I've done it before, but if it doesn't work then I'd be interested to know.

Bobby Lawrence wrote:

Is there a way to have a class with no primary key field descirptor?
All I want to do with OJB is retrieval.

-- Bobby





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to