4 Replies Latest reply on Jul 2, 2008 9:40 AM by Carlo de Wolf

    Partial override of MapValue not working

    Carlo de Wolf Master

      Given the following code:

      @MapValue(keyClass=String.class, value={}, valueClass=String.class)
       public void setDefaultPersistenceProperties(Properties p)
       {
       this.defaultPersistenceProperties = p;
       }

      With the following override:
      <bean name="PersistenceUnitDeployer" class="org.jboss.jpa.deployers.PersistenceUnitDeployer">
       <property name="defaultPersistenceProperties">
       <map>
       <entry>
       <key>hibernate.transaction.manager_lookup_class</key>
       <value>org.hibernate.transaction.JBossTransactionManagerLookup</value>
       </entry>
       </map>
       </property>
       </bean>

      I still get:
      java.lang.IllegalArgumentException: Unable to determine type for value: hibernate.transaction.manager_lookup_class


      Why is that?

      (It also struck me as weird that MapValue.value is mandatory.)