Announcement Announcement Module
Collapse
No announcement yet.
Roo and repositoryPattern Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo and repositoryPattern

    According to my understanding of the repositoryPattern:
    A JpaRepository object should be able to "front" multiple entities(unlike a single DAO which "fronts" a single entity)
    Also a service should be able to use multiple JpaRepository objects.
    a) How can I make a JpaRepository object "front" multiple entities using the "repository jpa --interface ~.repository.XYZRepository.." command?
    b) How can I make a service using command "service --interface ~.service.XYZService --entity.." to use multiple repositories?

    Have tried the following:
    repository jpa --interface ~.repository.XYZRepository --entity "~.domain.ABC ~.domain.DEF ~domain.GHI"
    (does not work)

    repository jpa --interface ~.repository.ARepository --entity ~.domain.A (works)
    repository jpa --interface ~.repository.BRepository --entity ~.domain.B (works)
    repository jpa --interface ~.repository.CRepository --entity ~.domain.C (works)
    service --interface ~.service.XService --entity "~.domain.A ~.domain.B ~domain.C" (does not work, I expect XService to use the A,B and CRepository classes)
Working...
X