• VanillaGorilla
      link
      fedilink
      112 years ago

      Don’t forget the repository methods! getAllByTenantAndActiveAndCreatedAfterAndFirstNameContainsOrderByLastName

      • @victron
        link
        3
        edit-2
        11 months ago

        deleted by creator

      • @[email protected]
        link
        fedilink
        22 years ago

        Yeah that can get ugly but it’s still better than writing native queries because you know it’s gonna automatically translate to any db specific sql flavour.

        When they get a bit too long and ugly I either write default methods using specifications or I create a more concisely named default method that wraps the verbose monster.

        • VanillaGorilla
          link
          fedilink
          2
          edit-2
          2 years ago

          Or you could rename your fields to single characters! getAllByAAndBOrderByC

          Now I feel dirty…

    • @[email protected]
      link
      fedilink
      52 years ago

      you forgot about AbstractSimpleShitLotsGoodLibrariesButWeDecidedToMakeOurOwn and AbstractSimpleShitLotsGoodLibrariesButWeDecidedToMakeOurOwnAbstractFactory