Skip to content

Instantly share code, notes, and snippets.

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