Skip to content

Instantly share code, notes, and snippets.

@jadianes
Created August 19, 2012 09:51
Show Gist options
  • Save jadianes/3394038 to your computer and use it in GitHub Desktop.
Save jadianes/3394038 to your computer and use it in GitHub Desktop.
The transfer entity
package com.jadianes.samples.genericdao.transfer;
/**
* This interface represents a TransferEntity in the Dao pattern used to interchange information between the
* BusinessObject and the DataAccessObject (Dao). Tipically the Dao will set/get this object from the
* DataSource (e.g. a DB or a message channel). See more info about the Dao pattern in:
*/
public interface TransferEntity<K> {
public void setId(K id);
public K getId();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment