Reputation: 2437
I have a java class with a member:
@Entity
public class TypeA {
...
@Reference(lazy = true) private TypeB anObj;
...
}
Now when I do a datastore.find(TypeA.class).asList().get(0)
, the reference also gets loaded and I get the message "WARNING: Lazy loading impossible due to missing dependencies." logged to the console.
What are the dependencies I'm missing and how do I include them?
Upvotes: 4
Views: 2034
Reputation: 6243
You'll need to add this to your pom.xml (if you're using maven):
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>[2.1_3,3.0)</version>
<type>jar</type>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.thoughtworks.proxytoys</groupId>
<artifactId>proxytoys</artifactId>
<version>1.0</version>
<type>jar</type>
<optional>true</optional>
</dependency>
Upvotes: 5