Hi Thomas:
    I try to use the DMap Implementation. Like this:

public class SimpleOrgForMap extends PersistentObject{

    private DMap users ;

    public void addUsers(SimpleUserForMap pUser){

        System.out.println("***************Add Users For MapCollection.");
        if (users == null)
        {
            users = new DMapImpl();
        }
        this.users.put(pUser.getOID(),pUser);

    }
    public DMap getUsers(){
        System.out.println("***************Get Users For MapCollection.");
        return this.users;
    }

    public void setUsers(DMap pMembers){
        this.users = pMembers;
    }
    public SimpleOrgForMap() {
    }
}

But I don't know how to set 'collection-class' attribute of
collection-descriptor element.
Must I set the attribute?

Thanks.


> Hi ½²³Õ¦Ü,
>
> Why don't you simply use the ODMG DMap Implementation?
> This will save you a lot of work!
>
> Thomas
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to