Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
Firestore relationship

Can someone explain how to organize the relationship between objects using Spring Boot and Firestore?

I am using spring-cloud-gcp-starter-data-firestore and I have two objects that must be located in different collections:

@Document(collectionName = "action_task")
public class ActionTask {

    @DocumentId
    private String id;
    ...........................
    
    private EventRule eventRule;
}

@Document(collectionName = "event_rule")
public class EventRulePair {

    @DocumentId
    private String id;

    ...................

    private String code;

    private String eventType;

    private Instant createdAt;
}

How organize relationships in the code and haw store in DB?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

As suggested by @Frank van Puffelen, Data modeling is highly specific on the use-cases you want to implement. Unless you have a specific use-case in mind, Recommend watching the excellent video series 1

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda