Bonjour,

Dans un developpement web sous tomcat, avec Spring 2, hibernate et hibernate annotation 3, j'ai un "petit" soucis...

Tou d'abord je créer une ma session factory dans applicationContext.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
	<bean id="sessionFactory"
		class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"
		<property name="dataSource">
			<ref bean="dataSource" />
		</property>
		<property name="hibernateProperties">
			<props>
				<prop key="hibernate.dialect">
					org.hibernate.dialect.PostgreSQLDialect
				</prop>
				<prop key="hibernate.show_sql">true</prop>
				<prop key="hibernate.use_outer_join">false</prop>
				<prop key="hibernate.hbm2ddl.auto">update</prop>
				<prop key="hibernate.jdbc.batch_size">0</prop>
				<prop key="hibernate.schemaUpdate">true</prop>
			</props>
		</property>
		<property name="annotatedClasses">
			<list>
			<value>fr.jopca.wta.datamodel.Magasin</value>
			</list>
		</property>
	</bean>
Le problème :
Si n'existe pas ou est invalide : Une erreure est bien levée.
Si je n'ai pas d'erreur, la base n'est pas mise à jour, et dans mon log le mapping n'est pas indiqué :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
2007-09-18 16:01:16,437 INFO  [SchemaUpdate.java:138] : updating schema
2007-09-18 16:01:16,437 DEBUG [AnnotationConfiguration.java:244] : Execute first pass mapping processing
2007-09-18 16:01:16,437 DEBUG [AnnotationConfiguration.java:481] : Process hbm files
2007-09-18 16:01:16,437 DEBUG [AnnotationConfiguration.java:489] : Process annotated classes
2007-09-18 16:01:16,437 DEBUG [AnnotationConfiguration.java:375] : processing manytoone fk mappings
Enfin si j'insiste :
[CODE]
org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: fr.jopca.wta.datamodel.Magasin;
[CODE]

Là je bloque, j'ai beau tourner la chose dans tout les sens, rien n'y fait.

Merci !