Hi, I have modied the source code of OJB to enable mapping 1:1 and 1:m association without adding variable instance (that model fk) in business object. I also adding the possiblity to allow automatically inheriance without any effort. For later, the idea is to model extended classes as 1:1 association with blank name. Actually, this changes work fine for loading. For updating and deleting, tests are under way. Houari TINE.
-----Message d'origine----- De : TINE Houari (OBJECTIVA) [mailto:[EMAIL PROTECTED] Envoy� : mercredi 19 f�vrier 2003 14:01 � : [EMAIL PROTECTED] Objet : dirty 1-1 association Hi, In the thesis "Javal baseeruv objektide p�sivuse kiht Jakamar" p. 17, there is a good sentence: "Adding persistence into the classes themselves is not always possible - they might be third party components." But OJB violates this principles by forces introducing a link modeling foreign key for 1-1 association and inheritence. For 1-1 association from A to B, it is necessary to add a reference (calss B) in class A to model the association: OK. But adding an integer (for example) to model a database foreig in the class A is a very very bad thing. There is any way to avoid that monstrosity. Houari TINE --------------------------------------------------------------------- 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]
