Examples of JPADeployment


Examples of org.jboss.as.console.client.shared.runtime.jpa.model.JPADeployment

                List<Property> units = deploymentValue.get("hibernate-persistence-unit").asPropertyList();

                for(Property unit : units)
                {

                    JPADeployment jpaDeployment = factory.jpaDeployment().as();
                    ModelNode unitValue = unit.getValue();
                    String tokenString = unit.getName();
                    String[] tokens = tokenString.split("#");
                    jpaDeployment.setDeploymentName(tokens[0]);
                    jpaDeployment.setPersistenceUnit(tokens[1]);

                    // https://issues.jboss.org/browse/AS7-5157
                    boolean enabled = unitValue.hasDefined("enabled") ? unitValue.get("enabled").asBoolean() : false;
                    jpaDeployment.setMetricEnabled(enabled);

                    jpaUnits.add(jpaDeployment);
                }

            }
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.