Are @ManyToMany relationships in GAE related?

I understand that with GAE JPA support, I cannot:

@ManyToMany
    private Set<SSUser> contacts; 

    protected SSUser(){}

    public SSUser(final String userId, final String emailId){
        this.userId = userId;
        this.emailId = emailId;
        contacts = new HashSet<SSUser>();
    }

I am trying to establish a contact relationship. Did I understand correctly that the above is not allowed?

If yes, is it permissible Set<String> contactsIds? Can I provide a working example?

+3
source share
2 answers

- , :

JPA 2.0

JPA :

  • " "
  • "". . , .
  • (group by, having, sum, avg, max, min)
  • . . .
+1

Source: https://habr.com/ru/post/1758390/


All Articles