moved Type to separated class

This commit is contained in:
Michael Hunger
2010-08-15 02:15:22 +02:00
parent 42170e2adf
commit 0e6fd5db03
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,4 @@
package org.springframework.persistence.graph;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -14,6 +13,5 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface GraphEntity {
public enum Type { NODE, RELATIONSHIP };
Type value() default Type.NODE;
}

View File

@@ -0,0 +1,6 @@
/**
*
*/
package org.springframework.persistence.graph;
public enum Type { NODE, RELATIONSHIP }