Skip to content

Instantly share code, notes, and snippets.

@dagvadorj
Created January 19, 2013 10:59
Show Gist options
  • Save dagvadorj/4572022 to your computer and use it in GitHub Desktop.
Save dagvadorj/4572022 to your computer and use it in GitHub Desktop.
/**
*
* @author Dagvadorj Galbadrakh
*
*/
@Remote
public interface RevisionBeanRemote {
/**
* Returns revision of a revisable entity at a given time.
* Throws IllegalArgumentException if the given time is too early
* @param entity
* @param revisionDate
* @return
* @throws IllegalArgumentException
*/
public <T extends RevisionModel, V extends RevisableModel<T>> T getRevision(
V entity, Date revisionDate) throws IllegalArgumentException;
/**
* Deletes a revision of a revisable model at a given time
* @param entity
*/
public <T extends RevisionModel> void deleteRevision(T entity);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment