Tabnine Logo
HibernateConfigurationFileService
Code IndexAdd Tabnine to your IDE (free)

How to use
HibernateConfigurationFileService
in
org.jboss.windup.rules.apps.javaee.service

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

origin: org.jboss.windup.rules.apps/windup-rules-java-ee

  /**
   * Gets an {@link Iterable} of {@link HibernateConfigurationFileModel}s for the given {@link ProjectModel}.
   */
  public Iterable<HibernateConfigurationFileModel> findAllByApplication(final ProjectModel application)
  {
    List<HibernateConfigurationFileModel> results = new ArrayList<>();

    for (HibernateConfigurationFileModel model : findAll())
    {
      Set<ProjectModel> modelApplications = ProjectTraversalCache.getApplicationsForProject(getGraphContext(), model.getProjectModel());
      if (modelApplications.contains(application))
        results.add(model);
    }
    return results;
  }
}
origin: org.jboss.windup.rules.apps/rules-java-ee

private void createHibernateConfigurationModel(GraphContext graphContext, XmlFileModel xmlFileModel, String versionInformation)
{
  HibernateConfigurationFileService hibernateConfigurationFileService = new HibernateConfigurationFileService(graphContext);
  GraphService<HibernateSessionFactoryModel> hibernateSessionFactoryService = new GraphService<>(graphContext,
        HibernateSessionFactoryModel.class);
  TechnologyTagService technologyTagService = new TechnologyTagService(graphContext);
  // check the root XML node.
  HibernateConfigurationFileModel hibernateConfigurationModel = hibernateConfigurationFileService.addTypeToModel(xmlFileModel);
  technologyTagService.addTagToFileModel(hibernateConfigurationModel, TECH_TAG, TECH_TAG_LEVEL);
  if (StringUtils.isNotBlank(versionInformation))
  {
    hibernateConfigurationModel.setSpecificationVersion(versionInformation);
  }
  Document doc = new XmlFileService(graphContext).loadDocumentQuiet(xmlFileModel);
  for (Element element : $(doc).find("session-factory").get())
  {
    HibernateSessionFactoryModel sessionFactoryModel = hibernateSessionFactoryService.create();
    hibernateConfigurationModel.addHibernateSessionFactory(sessionFactoryModel);
    Map<String, String> sessionFactoryProperties = new HashMap<>();
    for (Element propElement : $(element).find("property"))
    {
      String propKey = $(propElement).attr("name");
      String propValue = $(propElement).text().trim();
      sessionFactoryProperties.put(propKey, propValue);
    }
    sessionFactoryModel.setSessionFactoryProperties(sessionFactoryProperties);
  }
}
origin: org.jboss.windup.rules.apps/rules-java-ee

applicationReportModel.setTemplateType(TemplateType.FREEMARKER);
HibernateConfigurationFileService hibernateConfigurationFileService = new HibernateConfigurationFileService(context);
HibernateEntityService hibernateEntityService = new HibernateEntityService(context);
GraphService<WindupVertexListModel> listService = new GraphService<WindupVertexListModel>(context, WindupVertexListModel.class);
for (HibernateConfigurationFileModel hibernateConfig : hibernateConfigurationFileService.findAll())
origin: windup/windup

private void createHibernateReport(GraphContext context, ProjectModel application)
  HibernateConfigurationFileService hibernateConfigurationFileService = new HibernateConfigurationFileService(context);
  HibernateEntityService hibernateEntityService = new HibernateEntityService(context);
  List<HibernateConfigurationFileModel> configurationFileModels = new ArrayList<>();
  List<HibernateEntityModel> entityModels = new ArrayList<>();
  for (HibernateConfigurationFileModel hibernateConfig : hibernateConfigurationFileService.findAllByApplication(application))
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

HibernateConfigurationFileService hibernateConfigurationFileService = new HibernateConfigurationFileService(graphContext);
GraphService<HibernateSessionFactoryModel> hibernateSessionFactoryService = new GraphService<>(graphContext,
      HibernateSessionFactoryModel.class);
HibernateConfigurationFileModel hibernateConfigurationModel = hibernateConfigurationFileService.addTypeToModel(xmlFileModel);
technologyTagService.addTagToFileModel(hibernateConfigurationModel, TECH_TAG, TECH_TAG_LEVEL);
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

private void createHibernateReport(GraphContext context, ProjectModel application)
  HibernateConfigurationFileService hibernateConfigurationFileService = new HibernateConfigurationFileService(context);
  HibernateEntityService hibernateEntityService = new HibernateEntityService(context);
  List<HibernateConfigurationFileModel> configurationFileModels = new ArrayList<>();
  List<HibernateEntityModel> entityModels = new ArrayList<>();
  for (HibernateConfigurationFileModel hibernateConfig : hibernateConfigurationFileService.findAllByApplication(application))
origin: windup/windup

HibernateConfigurationFileService hibernateConfigurationFileService = new HibernateConfigurationFileService(graphContext);
GraphService<HibernateSessionFactoryModel> hibernateSessionFactoryService = new GraphService<>(graphContext,
      HibernateSessionFactoryModel.class);
HibernateConfigurationFileModel hibernateConfigurationModel = hibernateConfigurationFileService.addTypeToModel(xmlFileModel);
technologyTagService.addTagToFileModel(hibernateConfigurationModel, TECH_TAG, TECH_TAG_LEVEL);
origin: windup/windup

  /**
   * Gets an {@link Iterable} of {@link HibernateConfigurationFileModel}s for the given {@link ProjectModel}.
   */
  public Iterable<HibernateConfigurationFileModel> findAllByApplication(final ProjectModel application)
  {
    List<HibernateConfigurationFileModel> results = new ArrayList<>();

    for (HibernateConfigurationFileModel model : findAll())
    {
      Set<ProjectModel> modelApplications = ProjectTraversalCache.getApplicationsForProject(getGraphContext(), model.getProjectModel());
      if (modelApplications.contains(application))
        results.add(model);
    }
    return results;
  }
}
org.jboss.windup.rules.apps.javaee.serviceHibernateConfigurationFileService

Javadoc

Contains methods for querying, updating, and deleting HibernateConfigurationFileModel

Most used methods

  • <init>
  • addTypeToModel
  • findAll
  • findAllByApplication
    Gets an Iterable of HibernateConfigurationFileModels for the given ProjectModel.
  • getGraphContext

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Github Copilot alternatives
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