Quantcast
Viewing all articles
Browse latest Browse all 128

Query on @DBREF document Fileds

Hi,

i have two documents

Code:

@Document(collection="ficheprojet")
public class FicheProjet {
        //Id Projet Evalue
        @Id
        String idProjet;
       
        //Projet Evalue
        String projetEvalue;
       
        //Service Gerant le Projet
        String serviceProjet;
     
        @DBRef
        private Collaborateur collaborateur;

        //getters() and setter()
}

referencing

Code:

@Document(collection="user")
public class Collaborateur {

    @Id
    private String id;
   
    private String nomCollaborateur;

    private String prenomCollaborateur;
          //getters() and setter()
}


i'ld extract FicheProjet where nomCollaborateur match a value

here is my where condition

Code:

where("collaborateur.$user.nomCollateur").regex("xxx","i")
this where doesn't return values

Please how to fix this issue?,
Thanks

Viewing all articles
Browse latest Browse all 128

Trending Articles