<!-- Hibernate Session Factory Bean -->
<bean id="sessionFactory" class="
org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref local="dataSource"/>
</property>
<property name="mappingResources">
<list>
<value>Provider.hbm.xml</value>
<value>ProviderHistory.hbm.xml</value>
<!--<value>org/delta/provider/npi/data/ProviderHistory.hbm.xml</value>-->
<value>Plan.hbm.xml</value>
<value>State.hbm.xml</value>
<value>Taxonomy.hbm.xml</value>
<value>Queries.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.Oracle9Dialect</prop>
<prop key="hibernate.connection.release_mode
">on_close</prop>
<prop key="hibernate.max_fetch_depth">3</prop>
<prop key="hibernate.show_sql">true</prop>
<!--<prop key="hibernate.cache.use_query_cache
">true</prop>-->
<prop key="hibernate.cache.provider_class">
org.hibernate.cache.EhCacheProvider</prop>
<prop key="hibernate.cache.query_cache_factory">
org.hibernate.cache.StandardQueryCacheFactory</prop>
<prop key="hibernate.query.factory_class">
org.hibernate.hql.classic.ClassicQueryTranslatorFactory</prop>
</props>
</property>
</bean>
On 4/6/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
Use Spring instead as Spring will get rid of the hibernate config and
XDoclet will create the hibernate mappings.
On 4/6/07, Peter L. Berghold < [EMAIL PROTECTED]> wrote:
>
> On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote:
>
> >
> > <plugin>
> > <groupId>org.codehaus.mojo</groupId>
> > <artifactId>xdoclet-maven-plugin</artifactId>
> > <version>1.0-alpha-2</version>
> >
>
>
> BINGO! That was the one piece of information I wasn't getting. The
> examples I was looking at on line (which I cut/paste literally)
> referenced SNAPSHOTs.
>
>
> LAST QUESTION (for now) concerns generating generating the
> hibernate.cfg.xml file. Something tells me I have to add entries in the
> project.properties file to make this happen. Am I warm? Or do I need to
> create a hibernate.properties file?
>
>
> >
> --
> Peter L. Berghold Unix Professional
> [EMAIL PROTECTED] AIM: redcowdawg YIM: blue_cowdawg
> "Those who fail to learn from history are condemned to repeat it."
>
>
--
---
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---
--
---
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---