As per your last email, I switched from: ---------------------------------------- @weblogic.column-map key-column="automaticPaymentAccountFK" foreign-key-column="bankAccountPK"
to this: -------- @weblogic.column-map key-column="bankAccountPK" foreign-key-column="automaticPaymentAccountFK" And here is the error I am getting now: [java] [EJB:011017]Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was: [java] [java] In bean BankAccount, the abstract method, getAutomaticPaymentAccountDto(), does not correspond to any container-managed field and is not implemented in the bean class or any of its superclasses. [java] In bean BankAccount, the abstract method, setAutomaticPaymentAccountDto(com.wf.bd.ice.account.BankAccountDto), does not correspond to any container-managed field and is not implemented in the bean class or any of its superclasses. [java] Role 'AutomaticPaymentAccount-belongs_to-BusinessCard' of relationship 'BusinessCard-AutomaticPaymentBankAccount' contains an invalid key-column value of 'bankAccountPK'. The key-column must specify a primary key column in the related bean. However, there is no primary key column named 'bankAccountPK' defined in the related bean 'BusinessCard' or else 'bankAccountPK' is not being recognized due to case mismatch. -----Original Message----- From: Harkness, David [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 1:31 PM To: [EMAIL PROTECTED] Subject: RE: [Xdoclet-user] Relationship errors with WLS 8.1... [EMAIL PROTECTED] wrote: > Here is 1 issue with that though. > I have this: > > > BusinessCard > ============= > productPK > automaticPaymentAccountFK -> BankAccount.bankAccountPK > electronicPaymentAccountFK -> BankAccount.bankAccountPK > overdraftProtectionAccountFK -> BankAccount.bankAccountPK > > and > > BankAccount > ============ > bankAccountPK > > > So, each of the foreign keys in the BusinessCard are pointing > to a row in the BankAccount Table. That is the relationship. > > Does that make sense? Okay, as I understand it, then, you have *3* independent uni-directional 1:1 relationships from BusinessCard to BankAccount. BusinessCards related to a BankAccount will not be visible from the BankAccount itself, correct? That's the uni-directional part. > So the FK's are really _not_ going to be PK's at all in the > BusinessCard, hence the error message I am getting. The FKs are in the BusinessCard bean, and they should reference the BankAccount's PK. Comparing it to my beans (I don't have any 1:1, but I have a few uni-N:1 [children see parent] that work this way), I think you need to specify the key columns like this: @weblogic.column-map key-column="bankAccountPK" foreign-key-column="automaticPaymentAccountFK" The other two should look exactly the same except you'll specify a different foreign-key-column (electronicPaymentAccountFK and overdraftProtectionAccountFK). Give that a shot and let us know. David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user