private static PersistenceDescriptor persistenceXml() { return Descriptors.create( PersistenceDescriptor.class ) .version( "2.1" ) .createPersistenceUnit() .name( "primary" ) .transactionType( PersistenceUnitTransactionType._JTA ) .jtaDataSource( "java:jboss/datasources/ExampleDS" ) .getOrCreateProperties() // We want to use the ORM from this build instead of the one coming with WildFly .createProperty().name( "jboss.as.jpa.providerModule" ).value( "org.hibernate:" + ORM_MINOR_VERSION ).up() .createProperty().name( "hibernate.hbm2ddl.auto" ).value( "create-drop" ).up() .createProperty().name( "hibernate.allow_update_outside_transaction" ).value( "true" ).up() .up().up(); }
private ArquillianDescriptor resolveDescriptor(final InputStream input) { final ArquillianDescriptor descriptor; if (input != null) { descriptor = Descriptors.importAs(ArquillianDescriptor.class) .fromStream(input); } else { descriptor = Descriptors.create(ArquillianDescriptor.class); } return descriptor; }
@CommonExtends(common = { "dummy", "methodType" }) public interface JavaeeContainerTransactionCommonType<PARENT, ORIGIN extends JavaeeContainerTransactionCommonType<PARENT, ORIGIN, METHODTYPE2>, METHODTYPE2 extends JavaeeMethodCommonType> extends Child<PARENT> { }
@Deployment(order = 1, name="pa2") public static WebArchive processArchive2() { return initWebArchiveDeployment("pa2.war", "org/camunda/bpm/integrationtest/jobexecutor/IndependentJobExecutionTest.pa2.xml") .addAsResource("org/camunda/bpm/integrationtest/jobexecutor/IndependentJobExecutionTest.process2.bpmn20.xml") .setWebXML(new StringAsset(Descriptors.create(WebAppDescriptor.class).version("3.0").exportAsString())); }
private static PersistenceDescriptor persistenceXml() { return Descriptors.create( PersistenceDescriptor.class ) .version( "2.1" ) .createPersistenceUnit() .name( "primary" ) .transactionType( PersistenceUnitTransactionType._JTA ) .jtaDataSource( "java:jboss/datasources/ExampleDS" ) .getOrCreateProperties() // We want to use the ORM from this build instead of the one coming with WildFly .createProperty().name( "jboss.as.jpa.providerModule" ).value( "org.hibernate:" + ORM_MINOR_VERSION ).up() .createProperty().name( "hibernate.hbm2ddl.auto" ).value( "create-drop" ).up() .createProperty().name( "hibernate.allow_update_outside_transaction" ).value( "true" ).up() .up().up(); }
private ArquillianDescriptor resolveDescriptor(final InputStream input) { final ArquillianDescriptor descriptor; if (input != null) { descriptor = Descriptors.importAs(ArquillianDescriptor.class) .fromStream(input); } else { descriptor = Descriptors.create(ArquillianDescriptor.class); } return descriptor; }
@Deployment(order = 0, name="pa1") public static WebArchive processArchive1() { WebArchive deployment = initWebArchiveDeployment("pa1.war", "org/camunda/bpm/integrationtest/jobexecutor/IndependentJobExecutionTest.pa1.xml") .addAsResource("org/camunda/bpm/integrationtest/jobexecutor/IndependentJobExecutionTest.process1.bpmn20.xml") .setWebXML(new StringAsset(Descriptors.create(WebAppDescriptor.class).version("3.0").exportAsString())); TestContainer.addContainerSpecificProcessEngineConfigurationClass(deployment); return deployment; }
@CommonExtends(common = { "dummy", "config-propertyType" }) public interface JavaeeConnectionDefinitionCommonType<PARENT, ORIGIN extends JavaeeConnectionDefinitionCommonType<PARENT, ORIGIN, CONFIGPROPERTYTYPE2>, CONFIGPROPERTYTYPE2 extends JavaeeConfigPropertyCommonType> extends Child<PARENT> { }
private static PersistenceDescriptor persistenceXml() { return Descriptors.create( PersistenceDescriptor.class ) .version( "2.1" ) .createPersistenceUnit() .name( "primary" ) .transactionType( PersistenceUnitTransactionType._RESOURCE_LOCAL ) .jtaDataSource( "java:jboss/datasources/ExampleDS" ) .getOrCreateProperties() // We want to use the ORM from this build instead of the one coming with WildFly .createProperty() .name( "jboss.as.jpa.providerModule" ) .value( "org.hibernate:" + ORM_MINOR_VERSION ) .up() .createProperty() .name( "hibernate.hbm2ddl.auto" ) .value( "create-drop" ) .up() .createProperty() .name( "hibernate.allow_update_outside_transaction" ) .value( "true" ) .up() .up() .up(); }
@CommonExtends(common = { "dummy", "run-asType" }) public interface JavaeeSecurityIdentityCommonType<PARENT, ORIGIN extends JavaeeSecurityIdentityCommonType<PARENT, ORIGIN, RUNASTYPE3>, RUNASTYPE3 extends JavaeeRunAsCommonType> extends Child<PARENT> { }
private static PersistenceDescriptor persistenceXml() { final PersistenceDescriptor pd = Descriptors.create( PersistenceDescriptor.class ) .version( "2.1" ) .createPersistenceUnit().name( PERSISTENCE_UNIT_NAME ) .transactionType( PersistenceUnitTransactionType._JTA ) .jtaDataSource( "java:jboss/datasources/ExampleDS" ) .clazz( WildFlyDdlEntity.class.getName() ) .excludeUnlistedClasses( true ) .getOrCreateProperties().createProperty().name( "jboss.as.jpa.providerModule" ).value( "org.hibernate:5.3" ).up().up() .getOrCreateProperties().createProperty().name( "hibernate.hbm2ddl.auto" ).value( "create-drop" ).up().up() // this should not be needed, but... .getOrCreateProperties().createProperty().name( AvailableSettings.JTA_PLATFORM ).value( JBossAppServerJtaPlatform.class.getName() ).up().up() .up(); System.out.println( "persistence.xml: " ); pd.exportTo( System.out ); return pd; }
@CommonExtends(common = { "dummy", "method-paramsType" }) public interface JavaeeMethodCommonType<PARENT, ORIGIN extends JavaeeMethodCommonType<PARENT, ORIGIN, METHODPARAMSTYPE5>, METHODPARAMSTYPE5 extends JavaeeMethodParamsCommonType> extends Child<PARENT> { }
@CommonExtends(common = { "dummy", "config-propertyType", "outbound-resourceadapterType", "inbound-resourceadapterType", "adminobjectType", "security-permissionType" }) public interface JeeResourceadapterCommonType<PARENT, ORIGIN extends JeeResourceadapterCommonType<PARENT, ORIGIN, CONFIGPROPERTYTYPE2, OUTBOUNDRESOURCEADAPTERTYPE3, INBOUNDRESOURCEADAPTERTYPE4, ADMINOBJECTTYPE5, SECURITYPERMISSIONTYPE6>, CONFIGPROPERTYTYPE2 extends JeeConfigPropertyCommonType, OUTBOUNDRESOURCEADAPTERTYPE3 extends JeeOutboundResourceadapterCommonType, INBOUNDRESOURCEADAPTERTYPE4 extends JeeInboundResourceadapterCommonType, ADMINOBJECTTYPE5 extends JeeAdminobjectCommonType, SECURITYPERMISSIONTYPE6 extends JeeSecurityPermissionCommonType> extends Child<PARENT> { }
@CommonExtends(common = { "dummy", "messagelistenerType" }) public interface JavaeeMessageadapterCommonType<PARENT, ORIGIN extends JavaeeMessageadapterCommonType<PARENT, ORIGIN, MESSAGELISTENERTYPE1>, MESSAGELISTENERTYPE1 extends JavaeeMessagelistenerCommonType> extends Child<PARENT> { }
@CommonExtends(common = { "dummy", "around-invokeType", "lifecycle-callbackType", "lifecycle-callbackType" }) public interface JavaeeInterceptorCommonType<PARENT, ORIGIN extends JavaeeInterceptorCommonType<PARENT, ORIGIN, AROUNDINVOKETYPE3, LIFECYCLECALLBACKTYPE4, LIFECYCLECALLBACKTYPE5>, AROUNDINVOKETYPE3 extends JavaeeAroundInvokeCommonType, LIFECYCLECALLBACKTYPE4 extends JavaeeLifecycleCallbackCommonType, LIFECYCLECALLBACKTYPE5 extends JavaeeLifecycleCallbackCommonType> extends Child<PARENT> { }
@CommonExtends(common = { "dummy", "activationspecType" }) public interface JavaeeMessagelistenerCommonType<PARENT, ORIGIN extends JavaeeMessagelistenerCommonType<PARENT, ORIGIN, ACTIVATIONSPECTYPE2>, ACTIVATIONSPECTYPE2 extends JavaeeActivationspecCommonType> extends Child<PARENT> { }
@CommonExtends(common = { "dummy", "messagelistenerType" }) public interface JeeMessageadapterCommonType<PARENT, ORIGIN extends JeeMessageadapterCommonType<PARENT, ORIGIN, MESSAGELISTENERTYPE1>, MESSAGELISTENERTYPE1 extends JeeMessagelistenerCommonType> extends Child<PARENT> { }
@CommonExtends(common = { "dummy", "security-roleType", "method-permissionType", "container-transactionType", "interceptor-bindingType", "message-destinationType", "exclude-listType", "application-exceptionType" }) public interface JavaeeAssemblyDescriptorCommonType<PARENT, ORIGIN extends JavaeeAssemblyDescriptorCommonType<PARENT, ORIGIN, SECURITYROLETYPE1, METHODPERMISSIONTYPE2, CONTAINERTRANSACTIONTYPE3, INTERCEPTORBINDINGTYPE4, MESSAGEDESTINATIONTYPE5, EXCLUDELISTTYPE6, APPLICATIONEXCEPTIONTYPE7>, SECURITYROLETYPE1 extends JavaeeSecurityRoleCommonType, METHODPERMISSIONTYPE2 extends JavaeeMethodPermissionCommonType, CONTAINERTRANSACTIONTYPE3 extends JavaeeContainerTransactionCommonType, INTERCEPTORBINDINGTYPE4 extends JavaeeInterceptorBindingCommonType, MESSAGEDESTINATIONTYPE5 extends JavaeeMessageDestinationCommonType, EXCLUDELISTTYPE6 extends JavaeeExcludeListCommonType, APPLICATIONEXCEPTIONTYPE7 extends JavaeeApplicationExceptionCommonType> extends Child<PARENT> { }
@CommonExtends(common = { "dummy", "if-class-available", "if-class-not-available", "if-system-property" }) public interface JavaeeExcludeCommType<PARENT, ORIGIN extends JavaeeExcludeCommType<PARENT, ORIGIN, IFCLASSAVAILABLE1, IFCLASSNOTAVAILABLE2, IFSYSTEMPROPERTY3>, IFCLASSAVAILABLE1 extends JavaeeIfClassAvailableCommType, IFCLASSNOTAVAILABLE2 extends JavaeeIfClassNotAvailableCommType, IFSYSTEMPROPERTY3 extends JavaeeIfSystemPropertyCommType> extends Child<PARENT> { }
@CommonExtends(common = { "dummy", "methodType" }) public interface JavaeeExcludeListCommonType<PARENT, ORIGIN extends JavaeeExcludeListCommonType<PARENT, ORIGIN, METHODTYPE2>, METHODTYPE2 extends JavaeeMethodCommonType> extends Child<PARENT> { }