Results 1 to 3 of 3

Thread: jpa:repositories througth @Configuration - how do it right?

  1. #1
    Join Date
    Mar 2008
    Posts
    29

    Default jpa:repositories througth @Configuration - how do it right?

    Hello.
    How to setup
    <jpa:repositories base-package=""/>
    using @Configuration classes, and not the XML configuration files.
    Of course, it is possible to @ImportResource always, but how do it just inside java config class?

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,806

    Default

    Hello

    I am assuming you want remove XML and work around with Java only

    Check the API for these annotations





    HTH
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  3. #3
    Join Date
    Jan 2006
    Location
    Edmonton, Alberta, Canada
    Posts
    63

    Default

    I have similar issue, trying to use Java Configuration instead of <mongo:repositories .../>.

    Then I found this JIRA ticket: https://jira.springsource.org/browse/DATACMNS-47

    Unfortunately this is minor priority. Let's vote it up

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •