private void createHibernateReport(GraphContext context, ProjectModel application) HibernateEntityService hibernateEntityService = new HibernateEntityService(context); List<HibernateConfigurationFileModel> configurationFileModels = new ArrayList<>(); List<HibernateEntityModel> entityModels = new ArrayList<>(); for (HibernateEntityModel entityModel : hibernateEntityService.findAllByApplication(application))
/** * Gets an {@link Iterable} of {@link }s for the given {@link ProjectModel}. */ public Iterable<HibernateEntityModel> findAllByApplication(ProjectModel application) { GraphTraversal<Vertex, Vertex> pipeline = new GraphTraversalSource(getGraphContext().getGraph()).V(application.getElement()); pipeline.in(HibernateEntityModel.APPLICATIONS); pipeline.has(WindupVertexFrame.TYPE_PROP, Text.textContains(HibernateEntityModel.TYPE)); return new FramedVertexIterable<>(getGraphContext().getFramed(), pipeline.toList(), HibernateEntityModel.class); } }
HibernateMappingFileService hibernateMappingFileService = new HibernateMappingFileService( event.getGraphContext()); HibernateEntityService hibernateEntityService = new HibernateEntityService(event.getGraphContext()); XmlFileService xmlFileService = new XmlFileService(event.getGraphContext()); TechnologyTagService technologyTagService = new TechnologyTagService(event.getGraphContext()); HibernateEntityModel hibernateEntity = hibernateEntityService.create(); hibernateEntity.setSpecificationVersion(versionInformation); hibernateEntity.setJavaClass(clz);
HibernateEntityService hibernateEntityService = new HibernateEntityService(context); GraphService<WindupVertexListModel> listService = new GraphService<WindupVertexListModel>(context, WindupVertexListModel.class); for (HibernateEntityModel entityModel : hibernateEntityService.findAll())
HibernateEntityService hibernateEntityService = new HibernateEntityService(context); GraphService<WindupVertexListModel> listService = new GraphService<WindupVertexListModel>(context, WindupVertexListModel.class);
HibernateMappingFileService hibernateMappingFileService = new HibernateMappingFileService( event.getGraphContext()); HibernateEntityService hibernateEntityService = new HibernateEntityService(event.getGraphContext()); XmlFileService xmlFileService = new XmlFileService(event.getGraphContext()); TechnologyTagService technologyTagService = new TechnologyTagService(event.getGraphContext()); HibernateEntityModel hibernateEntity = hibernateEntityService.create(); hibernateEntity.setSpecificationVersion(versionInformation); hibernateEntity.setApplications(ProjectTraversalCache.getApplicationsForProject(event.getGraphContext(), xml.getProjectModel()));
HibernateMappingFileService hibernateMappingFileService = new HibernateMappingFileService( event.getGraphContext()); HibernateEntityService hibernateEntityService = new HibernateEntityService(event.getGraphContext()); XmlFileService xmlFileService = new XmlFileService(event.getGraphContext()); TechnologyTagService technologyTagService = new TechnologyTagService(event.getGraphContext()); HibernateEntityModel hibernateEntity = hibernateEntityService.create(); hibernateEntity.setSpecificationVersion(versionInformation); hibernateEntity.setApplications(ProjectTraversalCache.getApplicationsForProject(event.getGraphContext(), xml.getProjectModel()));
private void createHibernateReport(GraphContext context, ProjectModel application) HibernateEntityService hibernateEntityService = new HibernateEntityService(context); List<HibernateConfigurationFileModel> configurationFileModels = new ArrayList<>(); List<HibernateEntityModel> entityModels = new ArrayList<>(); for (HibernateEntityModel entityModel : hibernateEntityService.findAllByApplication(application))
/** * Gets an {@link Iterable} of {@link }s for the given {@link ProjectModel}. */ public Iterable<HibernateEntityModel> findAllByApplication(ProjectModel application) { GraphTraversal<Vertex, Vertex> pipeline = new GraphTraversalSource(getGraphContext().getGraph()).V(application.getElement()); pipeline.in(HibernateEntityModel.APPLICATIONS); pipeline.has(WindupVertexFrame.TYPE_PROP, Text.textContains(HibernateEntityModel.TYPE)); return new FramedVertexIterable<>(getGraphContext().getFramed(), pipeline.toList(), HibernateEntityModel.class); } }