> -----Original Message-----
> your repository_xml says: indirection-table="document_keyword".
> typo? (missing 's');
This is not a typo. The table is called document_keyword.
> > handle join tables needed by many-to-many in OJB?
>
> see .../db-ojb/src/test/org/apache/ojb/repository_junit.xml
> usage of 'indirection-table', e.g. Person <-> Role
I checked usage of 'indirection-table' with the Person <-> Role mapping and
it seems to be exactly like I used it. I can't find any difference
> I suggest that you compare your classes with the ones in
> OJB's junit tests.
Couldn't find any differences. In junit tests Collections are used. I also
use Collections.
> If you do not find the error, please post also your pc
> classes source code.
In the following I included the source for all my value objects. I removed
getter/setter methods. I didn't include the repository.xml again.
----------------------------------------------------------------------------
--------------------------
package ch.ctc.support.document;
import java.sql.Date;
import java.util.Collection;
import java.util.Vector;
import ch.ctc.support.common.ValueObject;
import ch.ctc.support.member.MemberVO;
public class DocumentVO extends ValueObject {
private Long documentId;
private String documentName;
private String documentDescription;
private String documentVersion;
private byte[] documentAbstract;
private Date creationDate;
private Collection palModels;
private Collection keywords;
private Collection category;
private MemberVO documentAuthor;
}
----------------------------------------------------------------------------
--------------------------
package ch.ctc.support.category;
import ch.ctc.support.common.ValueObject;
public class KeywordVO extends ValueObject {
private Long keywordId;
private String keywordName;
}
----------------------------------------------------------------------------
--------------------------
package ch.ctc.support.category;
import ch.ctc.support.common.ValueObject;
public class CategoryVO extends ValueObject {
private Long categoryId;
private String categoryName;
private String categoryDescription;
}
----------------------------------------------------------------------------
--------------------------
package ch.ctc.support.member;
import ch.ctc.support.common.ValueObject;
public class MemberVO extends ValueObject {
private Long memberId;
private String firstName;
private String lastName;
private String userName;
private String password;
private String email;
private String company;
private int accessLevel;
}
----------------------------------------------------------------------------
--------------------------
package ch.ctc.support.member;
import ch.ctc.support.common.ValueObject;
public class CompanyVO extends ValueObject {
private Long companyId;
private String companyName;
}
----------------------------------------------------------------------------
--------------------------
package ch.ctc.support.common;
import java.io.Serializable;
public abstract class ValueObject implements Serializable{
public ValueObject() {
}
}
----------------------------------------------------------------------------
--------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]