Examples of DaoGenerationContext


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

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

      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
Copyright © 2018 www.massapi.com. 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.