git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/information-system-model@129827 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d7ce4bbe8c
commit
a99f9a4dd3
|
@ -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 {
|
|
||||||
|
|
||||||
}
|
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
package org.gcube.informationsystem.model.relation;
|
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.embedded.RelationProperty;
|
||||||
import org.gcube.informationsystem.model.entity.Entity;
|
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> {
|
public interface Relation<Out extends Entity, In extends Entity> {
|
||||||
|
|
||||||
@Method
|
|
||||||
public Out getSource();
|
public Out getSource();
|
||||||
|
|
||||||
@Method
|
|
||||||
public In getTarget();
|
public In getTarget();
|
||||||
|
|
||||||
|
@ISProperty
|
||||||
public RelationProperty getRelationProperty();
|
public RelationProperty getRelationProperty();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue