congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JPANamedQueryModel
Code IndexAdd Tabnine to your IDE (free)

How to use
JPANamedQueryModel
in
org.jboss.windup.rules.apps.javaee.model

Best Java code snippets using org.jboss.windup.rules.apps.javaee.model.JPANamedQueryModel (Showing top 8 results out of 315)

origin: windup/windup

  public boolean belongsToProject(JPANamedQueryModel model, ProjectModel projectModel)
  {
    return model.getJpaEntity().belongsToProject(projectModel);
  }
}
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

private void addNamedQuery(GraphService<JPANamedQueryModel> namedQueryService, JPAEntityModel jpaEntity,
      JavaAnnotationTypeReferenceModel reference)
{
  String name = getAnnotationLiteralValue(reference, "name");
  String query = getAnnotationLiteralValue(reference, "query");
  LOG.info("Found query: " + name + " -> " + query);
  JPANamedQueryModel namedQuery = namedQueryService.create();
  namedQuery.setQueryName(name);
  namedQuery.setQuery(query);
  namedQuery.setJpaEntity(jpaEntity);
}
origin: windup/windup

private void addNamedQuery(GraphService<JPANamedQueryModel> namedQueryService, JPAEntityModel jpaEntity,
      JavaAnnotationTypeReferenceModel reference)
{
  String name = getAnnotationLiteralValue(reference, "name");
  String query = getAnnotationLiteralValue(reference, "query");
  LOG.info("Found query: " + name + " -> " + query);
  JPANamedQueryModel namedQuery = namedQueryService.create();
  namedQuery.setQueryName(name);
  namedQuery.setQuery(query);
  namedQuery.setJpaEntity(jpaEntity);
}
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

  public boolean belongsToProject(JPANamedQueryModel model, ProjectModel projectModel)
  {
    return model.getJpaEntity().belongsToProject(projectModel);
  }
}
origin: windup/windup

public List<ProjectModel> getApplications(JPANamedQueryModel model)
{
  return model.getJpaEntity().getApplications();
}
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

public List<ProjectModel> getApplications(JPANamedQueryModel model)
{
  return model.getJpaEntity().getApplications();
}
origin: windup/windup

for (JPANamedQueryModel namedQuery : jpaNamedQueryService.findAll())
  if (Iterables.contains(namedQuery.getJpaEntity().getApplications(), application))
    namedQueryList.add(namedQuery);
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

for (JPANamedQueryModel namedQuery : jpaNamedQueryService.findAll())
  if (Iterables.contains(namedQuery.getJpaEntity().getApplications(), application))
    namedQueryList.add(namedQuery);
org.jboss.windup.rules.apps.javaee.modelJPANamedQueryModel

Javadoc

Contains metadata associated with a JPA Named Query.

Most used methods

  • getJpaEntity
    Contains the jpa entity model
  • setJpaEntity
    Contains the jpa entity model
  • setQuery
    Contains the query
  • setQueryName
    Contains the query name

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now