Skip to content

Instantly share code, notes, and snippets.

@tylertreat
Created December 31, 2014 21:25
Show Gist options
  • Select an option

  • Save tylertreat/abadd3f63a62f28c3973 to your computer and use it in GitHub Desktop.

Select an option

Save tylertreat/abadd3f63a62f28c3973 to your computer and use it in GitHub Desktop.
FooEntity foo = (FooEntity) Enhancer.create(
FooEntity.class,
new LazyLoader() {
public Object loadObject() throws Exception {
return Datastore.load(fooId);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment