I am using mongodb with spring and I added spring-data-mongodb using maven
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb</artifactId>
<version>1.4.0.RELEASE</version>
</dependency>
I am trying to use @DBRef lazy load but I get error
@DBRef(lazy = true)
private List<Bill> shoppingHistory = new ArrayList<>();
my error is
The attribute lazy is undefined for the annotation type DBRef
I can only user db attribute.
Can somebody help me how to solve this problem?