Newbie Proxy problem

2004-03-19 Thread Mauricio Montblanch
Hi I am trying to use a dynamic proxy in a 1:n relation (loading a list) but a I can 't figure out how make it work (I get a java.lang.ClassCastException when I try to get the any object), can anyone give me a simple example of how to use a dynamic proxy. Detail Clases: Product

Re: Logger Error

2004-03-19 Thread Laurie Harper
Check your class path; you're missing some of the libraries required by OJB (commons-logging in this case). L. Carles Duque wrote: Hello, I'm using tomcat and ojb. I test an example of cocoon with ojb: PersistenceManager manager = factory.getPersistenceManager(); /* 2. Get

Re: AfterLookup in PersistenceBrokerAware called with incomplete Object (reference Missing) ?

2004-03-19 Thread Armin Waibel
Hi Stefan, did you tried latest from CVS? We made several changes in code since rc5. If it doesn't work with latest from CVS too, a test case would be really helpful. regards, Armin Stefan Schlösser wrote: Hi, we have a situation in which an object A contains another object B defined by a

Re: AW: ms access: sqlexception

2004-03-19 Thread Jakob Braeuchi
hi christion, you could use p6spy to log the statement, an the execute the insert-statement directly in ms-access. the ? in values are then replaced with real data. jakob Christian Eugster wrote: hi jakob i used the same attributenames in other databases as postgresql and mysql and it works

Re: 1 to 1 mapping

2004-03-19 Thread Armin Waibel
Hi John, you have to declare all PK fields in the collection/reference-descriptor inverse-foreignkey/foreignkey tags. McCaffrey, John G. wrote: I am trying to join two tables A and B table A has three primary keys Main_ID Node_ID Process_Date table B has two primary keys Node_ID Process_Date my

RE: 1 to 1 mapping

2004-03-19 Thread McCaffrey, John G.
Armin, First, Thanks for responding I appreciate your assitance. My problem is that the table B can only be joined to Table A using one field (Node_ID), as the other keys from table A are not in the actual table B. (even the Process_Date field that is in Table B, is ITs process_date, and can't

Complex (for me) OJB Problem

2004-03-19 Thread Gary
I have a, for me, complex OJB problem, and am looking for pointers. I have two classes: a Test, and a PanelOfTests. I have two tables: Tests_Table, and Panel_Test_Table. Here is the pseudocode: public class Test { int testID; String category; // can be TE for test, PA for panel

Re: Complex (for me) OJB Problem

2004-03-19 Thread Jakob Braeuchi
hi gary, imo the table Panel_Test_Table is a link table to connect rows in Test_table, is that correct ? Test_table test_key / category 55 / PA 10 / TE 15 / TE 66 / PA Panel_Test_Table panel_test_key / panel_key / test_key 1 / 55 / 10 2 / 55 / 15 3 / 66 / 10 a test can be connected to multiple