public void show(final PipeOut out, @Option(name = "all", shortName = "a") final boolean showAll)
{
if (project.hasFacet(PersistenceFacet.class))
{
PersistenceFacet jpa = project.getFacet(PersistenceFacet.class);
PersistenceDescriptor config = jpa.getConfig();
ShellMessages.info(out, "Displaying current JPA configuration:");
if (!config.listUnits().isEmpty())
out.println();
for (PersistenceUnitDef unit : config.listUnits())
{
out.println(out.renderColor(ShellColor.BOLD, "Unit: ") + unit.getName() + "\t"
+ out.renderColor(ShellColor.BOLD, "transaction-type: ") + unit.getTransactionType());
out.println("description:\t" + unit.getDescription());
out.println("provider:\t" + unit.getProvider());