isnt this a question for the spring list? -igor
On Thu, Feb 14, 2008 at 1:04 AM, freak182 <[EMAIL PROTECTED]> wrote: > > Hello, > Im developing an app using hibernate annotations.My problem is when i > configure my appContext.xml the annotated class cannot be found. here is the > code snippet of appContext.xml found in WEB-INF/config. > > <!-- Session factory bean for Hibernate --> > <bean > > > class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" > id="sessionFactory"> > <property name="dataSource" ref="dataSource"></property> > <property name="hibernateProperties"> > <props> > <prop key="hibernate.dialect"> > org.hibernate.dialect.MySQL5Dialect > </prop> > <prop key="hibernate.cache.provider_class"> > org.hibernate.cache.OSCacheProvider > </prop> > <!--<prop > key="hibernate.show_sql">true</prop>--> > <prop > key="hibernate.c3p0.acquire_increment">2</prop> > <prop > key="hibernate.c3p0.idle_test_period">300</prop> > <prop key="hibernate.c3p0.max_size">100</prop> > <prop key="hibernate.connection.release_mode"> > after_statement > </prop> > <prop key="hibernate.c3p0.min_size">5</prop> > <prop key="hibernate.c3p0.preferredTestQuery"> > select 1 > </prop> > <prop > key="hibernate.c3p0.testConnectionOnCheckout"> > true > </prop> > <prop > key="hibernate.hbm2ddl.auto">update</prop> > <prop > > key="hibernate.bytecode.use_reflection_optimizer"> > true > </prop> > <!--<prop > key="hibernate.format_sql">true</prop>--> > </props> > </property> > <property name="annotatedClasses"> > <list> > <value>com.test.server.model.Test</value> > <value>com.test.server.model.Test2</value> > </list> > </property> > <property name="annotatedPackages"> > <list> > <value>com.test.server</value> > </list> > </property> > </bean> > > My question is, the appContext.xml should be put in the classpath or > /WEB-INF/config ?is there is difference between the two? Any idea. > Thanks a lot. > Cheers > -- > View this message in context: > http://www.nabble.com/annotated-class-tp15476390p15476390.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
