Added graph annotations. No attributes have been added yet.

This commit is contained in:
David Montag
2010-08-17 13:05:27 +02:00
parent ab8423f38d
commit d54cc08a07

View File

@@ -0,0 +1,37 @@
package org.springframework.persistence.graph;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
public @interface Graph {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Entity {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Relationship {
}
}
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Relationship {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface StartNode {
}
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface EndNode {
}
}
}