title: How do I create a bean in resources.groovy with an abstract parent bean?
body: <p>Trying to create a bean in resources.groovy equivalent to this in XML:</p>
  
  <pre><code>&lt;bean id="txProxyTemplate" abstract="true"
      class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"&gt;
      &lt;property name="transactionManager" ref="transactionManager" /&gt;
      &lt;property name="target" ref="genericHibernateDAO" /&gt;
      &lt;property name="transactionAttributes"&gt;
          &lt;props&gt;
              &lt;prop key="save*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;!--prop key="analyze"&gt;PROPAGATION_REQUIRED&lt;/prop --&gt;
              &lt;prop key="validate"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;prop key="remove*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;prop key="create*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;prop key="delete*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;prop key="add*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;prop key="clear*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;prop key="set*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;prop key="reinitialize"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;prop key="zap*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;prop key="turn*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
              &lt;prop key="*"&gt;PROPAGATION_REQUIRED&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Then a second bean which uses this abstract bean as it's parent:</p>
  
  <pre><code>&lt;bean id="myCoolService" parent="txProxyTemplate"&gt;
      &lt;property name="target"&gt;
          &lt;bean
              class="com.fourgablesguy.myapp.MyCoolService"&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>So far this is what I have in resources.groovy:</p>
  
  <pre><code>import org.springframework.transaction.interceptor.TransactionProxyFactoryBean
  import com.fourgablesguy.myapp.MyCoolService
  
  beans = {
      txProxyTemplate(TransactionProxyFactoryBean) {
          transactionManager = ref('transactionManager')
          target = ref ('genericHibernateDAO')
          transactionAttributes = [
              "save*":"PROPAGATION_REQUIRED",
              "validate":"PROPAGATION_REQUIRED",
              "remove*":"PROPAGATION_REQUIRED",
              "create*":"PROPAGATION_REQUIRED",
              "delete*":"PROPAGATION_REQUIRED",
              "add*":"PROPAGATION_REQUIRED",
              "clear*":"PROPAGATION_REQUIRED",
              "set*":"PROPAGATION_REQUIRED",
              "reinitialize":"PROPAGATION_REQUIRED",
              "zap*":"PROPAGATION_REQUIRED",
              "turn*":"PROPAGATION_REQUIRED",
              "*":"PROPAGATION_REQUIRED"
          ]
      }
  
      myCoolService(MyCoolService) {
  
      }
  }
  </code></pre>
  
  <p>Just not sure how to setup the txProxyTemplate bean to be abstract and the myCoolService bean to have the txProxyTemplate bean as the parent and the myCoolService bean as the target.</p>