2017-12-15 00:01:26 +01:00
|
|
|
package eu.eudat.models;
|
2017-12-09 23:31:07 +01:00
|
|
|
|
2018-03-21 11:16:32 +01:00
|
|
|
|
|
|
|
import eu.eudat.queryable.queryableentity.DataEntity;
|
2017-12-09 23:31:07 +01:00
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public interface DataModel<T extends DataEntity, M extends DataModel> {
|
2018-02-16 08:45:18 +01:00
|
|
|
M fromDataModel(T entity);
|
2018-02-16 11:34:02 +01:00
|
|
|
|
2018-01-17 13:03:51 +01:00
|
|
|
T toDataModel() throws Exception;
|
2018-02-16 11:34:02 +01:00
|
|
|
|
2018-01-19 10:31:05 +01:00
|
|
|
String getHint();
|
2017-12-09 23:31:07 +01:00
|
|
|
}
|