[shrinkwrap-issues] [JBoss JIRA] Resolved: (SHRINKDESC-82) Attributes appearing as Elements

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Tue Aug 30 16:51:26 EDT 2011


     [ https://issues.jboss.org/browse/SHRINKDESC-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Rubinger resolved SHRINKDESC-82.
---------------------------------------

    Fix Version/s: 1.2.0-alpha-1
       Resolution: Done


Upstream: https://github.com/shrinkwrap/descriptors/commit/da18e90e1a62fe6472e9f90f769ffb46e2f16ce8

> Attributes appearing as Elements
> --------------------------------
>
>                 Key: SHRINKDESC-82
>                 URL: https://issues.jboss.org/browse/SHRINKDESC-82
>             Project: ShrinkWrap Descriptors
>          Issue Type: Sub-task
>            Reporter: Andrew Rubinger
>            Assignee: Ralf Battenfeld
>            Priority: Blocker
>             Fix For: 1.2.0-alpha-1
>
>
> For instance:
> {code}Descriptors.create(PersistenceDescriptor.class).
>             getOrCreatePersistenceUnit().name(hibernateUnit).transactionType(txTypeJta).
>             provider(providerTypeHibernate).jtaDataSource(jtaDataSource).clazz(PersistenceDescriptor.class.getName()).up();{code}
> ...is generating:
> {code}<persistence>
>   <persistence-unit name="hibernate-unit">
>     <transaction-type>JTA</transaction-type>
>     <provider>org.hibernate.ejb.HibernatePersistence</provider>
>     <jta-data-source>java:/DefaultDS</jta-data-source>
>     <class>org.jboss.shrinkwrap.descriptor.api.persistence20.PersistenceDescriptor</class>
>   </persistence-unit>
> </persistence>{code}
> "transaction-type" should be an attribute of the "persistence-unit" element, not an element on its own.
> Due to the autogen nature of the spec APIs from XSDs, this is likely to be reflected elsewhere as well.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list