Hi,
I made an sample with Hibernate only, it works..
And the same with Spring3 using "org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" like this:
orm-config.xml:
Code:
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="datasource"/>
<property name="configurationClass">
<value>org.hibernate.cfg.AnnotationConfiguration</value>
</property>
<property name="configLocation">
<value>classpath:hibernate.cfg.xml</value>
</property>
<property name="annotatedClasses">
<list>
<value>com.xxx.fcr.domain.User</value>
<value>com.xxx.fcr.domain.Partition</value>
</list>
</property>
</bean>
and in my hibernate.cfg.xml:
Code:
<!-- configuration-->
...
<!-- CONFIGURATION FOR ANNOTATION-->
<property name="configurationClass">org.hibernate.cfg.AnnotationConfiguration</property>
<!--mapping-->
<mapping package="com.xxx.fcr.domain" />
<mapping class="com.xxx.fcr.domain.User"/>
but it doesn't work... I have exactly the same message (WARN : org.hibernate.cfg.AnnotationBinder - Package not found or wo package-info.java: com.xxx.xxxx.
Thanks by advance if any idea !