Package org.jboss.forge.addon.javaee.jpa.dao

Examples of org.jboss.forge.addon.javaee.jpa.dao.DaoGenerationContext


   @Override
   public Result execute(final UIExecutionContext context) throws Exception
   {
      UIContext uiContext = context.getUIContext();
      DaoGenerationContext generationContext = createContextFor(uiContext);
      Set<JavaClassSource> endpoints = generateDaos(generationContext);
      Project project = generationContext.getProject();
      JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);
      List<JavaResource> selection = new ArrayList<>();

      for (JavaClassSource javaClass : endpoints)
      {
View Full Code Here


      return true;
   }

   private DaoGenerationContext createContextFor(final UIContext context)
   {
      DaoGenerationContext generationContext = new DaoGenerationContext();
      generationContext.setProject(getSelectedProject(context));
      generationContext.setPersistenceUnitName(persistenceUnit.getValue());
      generationContext.setTargetPackageName(packageName.getValue());
      return generationContext;
   }
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.javaee.jpa.dao.DaoGenerationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.