This commit is contained in:
Luca Frosini 2016-07-04 09:39:45 +00:00
parent d7ce4bbe8c
commit a99f9a4dd3
2 changed files with 2 additions and 16 deletions

View File

@ -1,13 +0,0 @@
package org.gcube.informationsystem.model.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Method {
}

View File

@ -3,7 +3,7 @@
*/
package org.gcube.informationsystem.model.relation;
import org.gcube.informationsystem.model.annotations.Method;
import org.gcube.informationsystem.model.annotations.ISProperty;
import org.gcube.informationsystem.model.embedded.RelationProperty;
import org.gcube.informationsystem.model.entity.Entity;
@ -12,12 +12,11 @@ import org.gcube.informationsystem.model.entity.Entity;
*/
public interface Relation<Out extends Entity, In extends Entity> {
@Method
public Out getSource();
@Method
public In getTarget();
@ISProperty
public RelationProperty getRelationProperty();
}