[jboss-user] [JBoss jBPM] - Jbpm mapping file issue
Olivier_Debels
do-not-reply at jboss.com
Tue Mar 13 05:26:43 EDT 2007
Hi,
When deploying jbpm.jar in a jboss environment we saw the following issue popping up.
In the hibernate mapping files a typedef is used (string_max), which is only specified in hibernate.queries.hbm.xml. Other mapping files are using this typedef (Comment, Timer,...).
This has as consequence that the hibernate.queries.hbm.xml mapping file must be read before the other, otherwise you get exceptions like:
| org.hibernate.MappingException: Could not determine type for: string_max, for columns: [org.hibernate.mapping.Column(DESCRIPTION_)]
| at org.hibernate.mapping.SimpleValue.getType(SimpleVa lue.java:265)
|
Hibernate is at this moment not smart enough to determine the order based on typedefs, so jbpm mapping files must be robust enough to handle this.
What is a good solution for this? Repeating the typedef in all files where it is needed is a possibility.
Any thoughts?
Olivier.
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027454#4027454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027454
More information about the jboss-user
mailing list