[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1357) Allow to set NamingStrategy in HibernateFactory (patch included)

Przemyslaw Jaskierski (JIRA) jira-events at lists.jboss.org
Sun May 27 10:12:18 EDT 2007


Allow to set NamingStrategy in HibernateFactory (patch included)
----------------------------------------------------------------

                 Key: JBSEAM-1357
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1357
             Project: JBoss Seam
          Issue Type: Feature Request
          Components: Core
    Affects Versions: 1.2.1.GA
         Environment: Microcontainer
            Reporter: Przemyslaw Jaskierski
             Fix For: 1.3.0.ALPHA
         Attachments: HibernateFactory.diff.zip

I cannot find any way to set my non-default NamingStrategy using microcontainer-instantiated HibernateFactory. My complex mapping cannot be instantiated.  Following patch makes this possible. After applying, user can setup NamingStrategy using something like:

<bean name="complexNamingStrategy"class="x.y.z.ComplexNamingStrategy"/>
<bean name="hibernateSessionFactoryFactory" class="org.jboss.seam.microcontainer.HibernateFactory">
  <property name="cfgResourceName">conf/hibernate/hibernate.cfg.xml</property>
  <property name="namingStrategy">
    <inject bean="complexNamingStrategy"/>
  </property>
</bean>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list