Last active
August 29, 2015 13:56
-
-
Save cescoffier/9049950 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wisdom.ebean.mojo; | |
import java.util.Collection; | |
import java.util.concurrent.Callable; | |
/** | |
* Created by clement on 17/02/2014. | |
*/ | |
public interface Crud<T> { | |
T create(); | |
T asEntity(T t); | |
T update(T t); | |
T delete(T t); | |
T retrieve(Query<T> finder); | |
Collection<T> query(Query<T> finder); | |
void tx(Runnable block); | |
<A> A tx(Callable<A> block); | |
Class<T> getEntityClass(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment