Skip to content

Instantly share code, notes, and snippets.

@sebersole
Created September 27, 2011 20:46
Show Gist options
  • Save sebersole/1246197 to your computer and use it in GitHub Desktop.
Save sebersole/1246197 to your computer and use it in GitHub Desktop.
interface EntityLoadAccess<T> {
public T getReference(Object key);
public T getReference(Object key, LockOptions lockOptions);
public T load(Object key);
public T load(Object key, LockOptions lockOptions);
}
session.entityLoadAccess( SomeEntity.class ).byId().getReference( 123 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment