[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKDESC-40) Properties on PersistenceUnitDefImpl should overwrite existing properties with the same name

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Wed Mar 16 18:11:45 EDT 2011


    [ https://issues.jboss.org/browse/SHRINKDESC-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588476#comment-12588476 ] 

Aslak Knutsen commented on SHRINKDESC-40:
-----------------------------------------

need to change create("property") to getOrCreate("property at name=" + name)


> Properties on PersistenceUnitDefImpl should overwrite existing properties with the same name
> --------------------------------------------------------------------------------------------
>
>                 Key: SHRINKDESC-40
>                 URL: https://issues.jboss.org/browse/SHRINKDESC-40
>             Project: ShrinkWrap Descriptors
>          Issue Type: Enhancement
>          Components: api
>    Affects Versions: 0.1.3
>            Reporter: Lincoln Baxter III
>
> Continuous property updates cause this:
>       <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
>       <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
>       <property name="hibernate.show_sql" value="true"/>
>       <property name="hibernate.format_sql" value="true"/>
>       <property name="hibernate.transaction.flush_before_completion" value="true"/>
>       <property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/>
>       <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
>       <property name="hibernate.show_sql" value="true"/>
>       <property name="hibernate.format_sql" value="true"/>
>       <property name="hibernate.transaction.flush_before_completion" value="true"/>
>       <property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/>

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