Thanks for your reply!
So what you mean is, I must create the SessionFactory with my own persistent classes
(without including jBPM's) and then simply pass that SessionFactory to jBPM as in
JbpmContext.setSessionFactory(SessionFactory), and that's it?
In the manual the only thing that says about including the user classes is:
anonymous wrote : The easiest way to integrate your persistent classes with the jBPM
persistent classes is by creating one central hibernate.cfg.xml. You can take the jBPM
src/config.files/hibernate.cfg.xml as a starting point and add references to your own
hibernate mapping files in there.
Manually typing the classes sure could be the easiest way, but doesn't seem so
practical at all given that, to create a SessionFactory manually, I can add the full jBPM
jars to the configuration doing something like:
Configuration configuration = new Configuration();
| configuration.addJar(myMappingsJar); // File object
| configuration.addJar(jbpmJarFile);
| configuration.addJar(jbpmIdentityJarFile);
| SessionFactory hibSessionFactory = configuration.buildSessionFactory();
| JbpmSessionFactory sessionFactory = new JbpmSessionFactory(configuration,
hibSessionFactory);
I'm looking for a way to do this using jBoss' Hibernate Archive (HAR). Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965584#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...