Announcement Announcement Module
Collapse
No announcement yet.
spring-data-jpa custom repositories Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring-data-jpa custom repositories

    According to the spring-data-jpa documentation, one can create custom repostories using the factory-class attribute and passing it to the repositories tag. However, when I try to do so, the parser gives the exception:

    Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'factory-class' is not allowed to appear in element 'jpa:repositories'.

    How do I add custom repositories?

    The xml file has:
    <jpa:repositories base-package="com.shutterfly.....repository"
    factory-class="....jpa.repository.custom.CustomJpaReposito ryFactoryBean" />

  • #2
    I don't think we fixed this after M1 but try with a latest snapshot. Actually there's test cases that use the extensions facilities which have been included in M1 already IIRC.

    Comment

    Working...
    X