JPAEntityService jpaEntityService = new JPAEntityService(context); GraphService<JPANamedQueryModel> jpaNamedQueryService = new GraphService<>(context, JPANamedQueryModel.class); for (JPAEntityModel entityModel : jpaEntityService.findAll())
String schemaName = tableAnnotationTypeReference == null ? null : getAnnotationLiteralValue(tableAnnotationTypeReference, "schema"); JPAEntityService jpaService = new JPAEntityService(event.getGraphContext()); JPAEntityModel jpaEntity = jpaService.create(); jpaEntity.setApplications(ProjectTraversalCache.getApplicationsForProject(event.getGraphContext(), entityTypeReference.getFile().getProjectModel())); jpaEntity.setEntityName(ejbName);
String schemaName = tableAnnotationTypeReference == null ? null : getAnnotationLiteralValue(tableAnnotationTypeReference, "schema"); JPAEntityService jpaService = new JPAEntityService(event.getGraphContext()); JPAEntityModel jpaEntity = jpaService.create(); jpaEntity.setApplications(ProjectTraversalCache.getApplicationsForProject(event.getGraphContext(), entityTypeReference.getFile().getProjectModel())); jpaEntity.setEntityName(ejbName);
JPAConfigurationFileService jpaConfigurationFileService = new JPAConfigurationFileService(graphContext); JPAPersistenceUnitService jpaPersistenceUnitService = new JPAPersistenceUnitService(graphContext); JPAEntityService jpaEntityService = new JPAEntityService(graphContext); JavaClassModel javaClz = javaClassService.getOrCreatePhantom(clzName); JPAEntityModel entityModel = jpaEntityService.create(); entityModel.setApplications(applications); entityModel.setJavaClass(javaClz);
JPAEntityService jpaEntityService = new JPAEntityService(context); GraphService<JPANamedQueryModel> jpaNamedQueryService = new GraphService<>(context, JPANamedQueryModel.class); for (JPAEntityModel entityModel : jpaEntityService.findAll())
JPAConfigurationFileService jpaConfigurationFileService = new JPAConfigurationFileService(graphContext); JPAPersistenceUnitService jpaPersistenceUnitService = new JPAPersistenceUnitService(graphContext); JPAEntityService jpaEntityService = new JPAEntityService(graphContext); JavaClassModel javaClz = javaClassService.getOrCreatePhantom(clzName); JPAEntityModel entityModel = jpaEntityService.create(); entityModel.setApplications(applications); entityModel.setJavaClass(javaClz);