package org.jboss.windup.rules.apps.java.model.mixin;

import com.tinkerpop.frames.Adjacency;
import org.jboss.windup.graph.model.WindupVertexFrame;

import com.tinkerpop.frames.Property;
import com.tinkerpop.frames.modules.typedgraph.TypeValue;
import org.jboss.windup.rules.apps.java.model.JavaClassModel;

/**
 * A model mix-in for models that reference a Java type, for instance, resource-ref in web.xml.
 *
 * @author <a href="mailto:zizka@seznam.cz">Ondrej Zizka</a>
*/
@TypeValue(HasTypeModel.TYPE)
public interface HasTypeModel extends WindupVertexFrame
{
    public static final String TYPE = "HasTypeModel";

    public static final String JAVA_TYPE_NAME = TYPE + "-javaType";
    public static final String JAVA_TYPE = TYPE + "-javaType";

    /**
     * The referenced type name.
     */
    @Property(JAVA_TYPE_NAME)
    public String getJavaTypeName();

    /**
     * The referenced type name.
     */
    @Property(JAVA_TYPE_NAME)
    public void getJavaTypeName(String clazz);

    /**
     * The referenced type, if available.
     */
    @Adjacency(label = JAVA_TYPE)
    public JavaClassModel getJavaType();

    /**
     * The referenced type, if available.
     */
    @Property(JAVA_TYPE)
    public void setJavaType(JavaClassModel clazz);

}

@@ -561,36 +561,16 @@
 e%0A%7B%0A    
-public static final 
 String T
@@ -596,36 +596,16 @@
 %22;%0A%0A    
-public static final 
 String J
@@ -648,28 +648,8 @@
     
-public static final 
 Stri
@@ -767,23 +767,16 @@
 ME)%0A    
-public 
 String g
@@ -873,31 +873,24 @@
 E_NAME)%0A    
-public 
 void getJava
@@ -1010,23 +1010,16 @@
 PE)%0A    
-public 
 JavaClas
@@ -1100,33 +1100,42 @@
     */%0A    @
-Property(
+Adjacency(label = 
 JAVA_TYPE)%0A 
@@ -1137,23 +1137,16 @@
 PE)%0A    
-public 
 void set

Fix the annotation to properly reflect that it is a Adjacency relationship rather than a property (#1047)