1:n mapping - partial (delayed) commit

2004-01-04 Thread Ara Juljulian
Hello, I'm having a problem using ODMG to add a Video and its contained Vector of VideoData objects to a MySQL database. The problem is that the first VideoData object gets written immediately after I commit the transaction. The other VideoData objects, however, don't materialize in the

Newbie OQL select question - can I selectively retrieve fields?

2003-12-26 Thread Ara Juljulian
Is it possible to retrieve only certain fields of a table through OJB OQL? Something similar to the SQL: select id, video_id from VIDEO_DATA where id=5. Doing things like select id, videoId from + VideoData.class.getName() + where id = + videoDataId doesn't seem to work. It continues

RE: Newbie OQL select question - can I selectively retrieve fields?

2003-12-26 Thread Ara Juljulian
could try to split the mapping of the table on 2 objects One containing the names and the id , and the other one the id and the data . And you 'll load the second class only when you need the data. B.R Thierry -Original Message- From: Ara Juljulian [mailto:[EMAIL PROTECTED] Sent