Skip to content

Commit

Permalink
FORGE-1290: Avoiding adding properties with JavaEEDefaultProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Oct 26, 2013
1 parent 844909f commit ee89741
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.jboss.forge.addon.javaee.jpa.MetaModelProvider;
import org.jboss.forge.addon.javaee.jpa.PersistenceProvider;
import org.jboss.shrinkwrap.descriptor.api.persistence.PersistenceUnitCommon;
import org.jboss.shrinkwrap.descriptor.api.persistence.PropertiesCommon;

/**
*
Expand All @@ -41,9 +40,9 @@ public String getProvider()
public PersistenceUnitCommon configure(PersistenceUnitCommon unit, JPADataSource ds)
{
unit.excludeUnlistedClasses(Boolean.FALSE);
PropertiesCommon properties = unit.getOrCreateProperties();
properties.createProperty().name("javax.persistence.schema-generation.database.action").value("create");
properties.createProperty().name("javax.persistence.schema-generation.scripts.action").value("drop-and-create");
// PropertiesCommon properties = unit.getOrCreateProperties();
// properties.createProperty().name("javax.persistence.schema-generation.database.action").value("create");
// properties.createProperty().name("javax.persistence.schema-generation.scripts.action").value("drop-and-create");
return unit;
}

Expand Down

0 comments on commit ee89741

Please sign in to comment.