Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'WINDUP-651' of https://github.com/bradsdavis/windup int…
…o bradsdavis-WINDUP-651
- Loading branch information
Showing
7 changed files
with
381 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...a-ee/addon/src/main/java/org/jboss/windup/rules/apps/javaee/model/JPANamedQueryModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package org.jboss.windup.rules.apps.javaee.model; | ||
|
||
import org.jboss.windup.graph.model.WindupVertexFrame; | ||
import org.jboss.windup.rules.apps.java.model.JavaClassModel; | ||
|
||
import com.tinkerpop.blueprints.Direction; | ||
import com.tinkerpop.frames.Adjacency; | ||
import com.tinkerpop.frames.Property; | ||
import com.tinkerpop.frames.modules.typedgraph.TypeValue; | ||
|
||
/** | ||
* Contains metadata associated with a JPA Named Query. | ||
* | ||
* @author <a href="mailto:bradsdavis@gmail.com">Brad Davis</a> | ||
* | ||
*/ | ||
@TypeValue(JPANamedQueryModel.TYPE) | ||
public interface JPANamedQueryModel extends WindupVertexFrame | ||
{ | ||
public static final String JPA_ENTITY = "jpaEntity"; | ||
public static final String QUERY_NAME = "queryName"; | ||
public static final String QUERY = "query"; | ||
public static final String TYPE = "JPANamedQuery"; | ||
|
||
|
||
/** | ||
* Contains the query name | ||
*/ | ||
@Property(QUERY_NAME) | ||
public String getQueryName(); | ||
|
||
/** | ||
* Contains the query name | ||
*/ | ||
@Property(QUERY_NAME) | ||
public void setQueryName(String queryName); | ||
|
||
|
||
/** | ||
* Contains the query | ||
*/ | ||
@Property(QUERY) | ||
public String getQuery(); | ||
|
||
/** | ||
* Contains the query | ||
*/ | ||
@Property(QUERY) | ||
public void setQuery(String query); | ||
|
||
/** | ||
* Contains the jpa entity model | ||
*/ | ||
@Adjacency(label = JPAEntityModel.NAMED_QUERY, direction = Direction.IN) | ||
public void setJpaEntity(JPAEntityModel jpaEntity); | ||
|
||
/** | ||
* Contains the jpa entity model | ||
*/ | ||
@Adjacency(label = JPAEntityModel.NAMED_QUERY, direction = Direction.IN) | ||
public JPAEntityModel getJpaEntity(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.