Ordre juste

Most of the time we don’t care about the hibernate mapping configuration when we deploy an application based on JBPM (a worflow framework from Jboss). But if you want to use the same session factory for JBPM and your custom objects (the JBPM spring module have some helper classes) you have several options for the sessionFactory bean declaration in the spring configuration file :

<bean id=“sessionFactory”…>
<property name=“mappingDirectoryLocations”> <list> <value>classpath*:**/your/custom/objects/mapping</value> </list> </property> <property name=“mappingJarLocations”> <list> <value>file:**/jbpm-jpdl.jar</value> </list> </property> </bean>

Caused by: org.hibernate.MappingException: Could not determine type for: string_max, for columns: [org.hibernate.mapping.Column(MESSAGE_)]
or
Caused by: org.hibernate.MappingException: Could not determine type for: string_max, for columns: [org.hibernate.mapping.Column(DESCRIPTION_)] …

And if you use the 3.2 version of JBPM with the spring module (for 3.1) one minor modification is needed from the manual :  

billet publié dans les rubriques coding le