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