Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-47

Support Java-based Configuration of Repositories

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 Final
    • Fix Version/s: 1.4 M1
    • Component/s: Repositories
    • Labels:
      None

      Description

      Add RepositoryFactoryBuilder that would allow for easily configuring repositories using Spring's Java-based configuration. See forum reference for details.

        Issue Links

          Activity

          jzcfk9 Brandon M. created issue -
          Hide
          jzcfk9 Brandon M. added a comment -

          Any updates or thoughts on viability of adding this support in near future?

          Show
          jzcfk9 Brandon M. added a comment - Any updates or thoughts on viability of adding this support in near future?
          tmarshall Trevor Marshall made changes -
          Workflow jira [ 47708 ] SPR Workflow [ 49742 ]
          olivergierke Oliver Gierke made changes -
          Link This issue depends on DATACMNS-103 [ DATACMNS-103 ]
          olivergierke Oliver Gierke made changes -
          Fix Version/s 1.3 M1 [ 12699 ]
          olivergierke Oliver Gierke made changes -
          Fix Version/s 1.3 M1 [ 12699 ]
          Hide
          mandrews Michael Andrews added a comment -

          This is really the only thing missing for basic repository configuration to be fully in java. +1.

          Show
          mandrews Michael Andrews added a comment - This is really the only thing missing for basic repository configuration to be fully in java. +1.
          Hide
          mandrews Michael Andrews added a comment -

          E.g., Have the mongo:repositories, jpa:repositories (etc.) XML definitions - available in java - to be used in @Configuration classes.

          Show
          mandrews Michael Andrews added a comment - E.g., Have the mongo:repositories, jpa:repositories (etc.) XML definitions - available in java - to be used in @Configuration classes.
          olivergierke Oliver Gierke made changes -
          Link This issue is depended on by DATAJPA-69 [ DATAJPA-69 ]
          Hide
          olivergierke Oliver Gierke added a comment -

          Have a look at DATAJPA-69 for an example of what you can do right now already. Similar thing could be done for the MongoDB module. I recommend setting up a helper method to include the meat of the configuration so that the @Bean methods basically only contain a call to that method piping in the repo interface.

          Show
          olivergierke Oliver Gierke added a comment - Have a look at DATAJPA-69 for an example of what you can do right now already. Similar thing could be done for the MongoDB module. I recommend setting up a helper method to include the meat of the configuration so that the @Bean methods basically only contain a call to that method piping in the repo interface.
          olivergierke Oliver Gierke made changes -
          Link This issue is depended on by DATAGRAPH-266 [ DATAGRAPH-266 ]
          olivergierke Oliver Gierke made changes -
          Link This issue is depended on by DATAMONGO-476 [ DATAMONGO-476 ]
          olivergierke Oliver Gierke made changes -
          Link This issue is depended on by SGF-102 [ SGF-102 ]
          olivergierke Oliver Gierke made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          olivergierke Oliver Gierke added a comment -

          I've just published a first draft of the support into feature branches. The store specific implementations can be found in feature branches named after the ticket as listed above. To try out the feature refer to the library using JAVACONFIG-SNAPSHOT as version suffix (e.g. for Spring Data JPA - 1.2.0.JAVACONFIG-SNAPSHOT). The annotations are named @EnableJpaRepositories, @EnableMongoRepositories, @EnableNeo4jRepositories.

          Show
          olivergierke Oliver Gierke added a comment - I've just published a first draft of the support into feature branches. The store specific implementations can be found in feature branches named after the ticket as listed above. To try out the feature refer to the library using JAVACONFIG-SNAPSHOT as version suffix (e.g. for Spring Data JPA - 1.2.0.JAVACONFIG-SNAPSHOT). The annotations are named @EnableJpaRepositories , @EnableMongoRepositories , @EnableNeo4jRepositories .
          olivergierke Oliver Gierke made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 1.4 M1 [ 12896 ]
          Hide
          olivergierke Oliver Gierke added a comment -

          Merged support back into master branch. Feature is now available in plain BUILD-SNAPSHOT snapshot versions of the individual store modules.

          Show
          olivergierke Oliver Gierke added a comment - Merged support back into master branch. Feature is now available in plain BUILD-SNAPSHOT snapshot versions of the individual store modules.
          olivergierke Oliver Gierke made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          tmarshall Trevor Marshall made changes -
          Workflow SPR Workflow [ 49742 ] SPR Workflow - notify Spring Data HipChat [ 81671 ]
          tmarshall Trevor Marshall made changes -
          Workflow SPR Workflow - notify Spring Data HipChat [ 81671 ] DATA Workflow [ 95468 ]
          Hide
          d_vohra Deepak Vohra added a comment -

          Is support for @EnableCassandraRepositories also available?

          Show
          d_vohra Deepak Vohra added a comment - Is support for @EnableCassandraRepositories also available?
          Hide
          d_vohra Deepak Vohra added a comment -

          Found @EnableCassandraRepositories is already available.

          Show
          d_vohra Deepak Vohra added a comment - Found @EnableCassandraRepositories is already available.
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          388d 18h 36m 1 Oliver Gierke 09/Jul/12 12:30 AM
          In Progress In Progress Resolved Resolved
          3d 1h 5m 1 Oliver Gierke 12/Jul/12 1:36 AM
          Resolved Resolved Closed Closed
          256d 7h 49m 1 Oliver Gierke 25/Mar/13 9:25 AM

            People

            • Assignee:
              olivergierke Oliver Gierke
              Reporter:
              jzcfk9 Brandon M.
              Last updater:
              Deepak Vohra
            • Votes:
              17 Vote for this issue
              Watchers:
              24 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: