[
http://jira.jboss.com/jira/browse/JBSEAM-1357?page=all ]
Shane Bryzak closed JBSEAM-1357.
--------------------------------
Resolution: Done
Assignee: Shane Bryzak
Implemented in CVS, thanks for the patch. Please test this for me.
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
Assigned To: Shane Bryzak
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