Quantcast
Viewing all articles
Browse latest Browse all 128

@Document Not Working on Class That Implements an Interface

Hi,

Quick question. I'am applying the @Document annotation to a class that implements an interface but it does not seem work as expected. I expect the name of the collection to be what I declare in the annotation; however, it defaults to the name of my interface. If I apply @Document to my interface, things work as expected. I'd hate to have to annotate my interfaces. Anyone run across this?

<spring.version>3.1.1.RELEASE</spring.version>
<spring-data-mongodb-version>1.2.0.RELEASE</spring-data-mongodb-version>

Thanks,

Alejandro

Viewing all articles
Browse latest Browse all 128

Trending Articles