anonymous wrote : Yes. It is partially true. It is only needed to change the
hibernate.cfg.xml to include something like:
That's what I said. You need to create a hibernate.cfg.xml with an additional
mapping to your own queries xml.
anonymous wrote : I just don't understand how to add my own
"Olivier_Debels" wrote : I think it is much cleaner to just add your own
queries.
|
| It's rather easy if you just do it the same way as it is done in jbpm.
Just create your own extra queries file and make sure it is loaded in your
hibernateSessionFactory (by adding it in your hibernate.cf
And if you did it the same way as in jBPM, it would be easy to incoporate IN
jbpm if everybody thinks it is interesting enough.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964939#3964939
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=pos
I think it is much cleaner to just add your own queries.
It's rather easy if you just do it the same way as it is done in jbpm. Just
create your own extra queries file and make sure it is loaded in your
hibernateSessionFactory (by adding it in your hibernate.cfg.xml).
By doing this you can ext
"yxyang" wrote : kukeltje,
|
| i feel a bit strange why cannot post the simple answer here instead of
going through the source code.
since it is good documentation, you learn from it, I do not know everything
(e.g. forgot that the queries were moved to the hibernate file instead of
code)
Is the following code the correct way to retrieve the taskinstances for the
specific tasknode name and task name?
| private java.util.List getTaskInstance(String tasknodename, String
taskname) throws Exception {
| log.debug("getTaskInstance() is called");
| lo
got it.
hibernate.queries.hbm.xml file
Although it is not difficult, if i want to use only EJBs 2 and not the
hibernate code in my application code (i prefer to keep the hibernate stuff
under the cover of the jbpm api)., it is no direct way.
View the original post :
http://www.jboss.co
kukeltje,
i feel a bit strange why cannot post the simple answer here instead of going
through the source code.
never mind, if no direct answer, of course, i will looking the source code.
yang
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964821#3964821
If you looked through the api, the next thing you should do is to look trough
the sourcecode (
it is such a good part of documentation) to see how comparable methods have
implemented this. You'll be surprised how simple it is. Just learn HQL.
View the original post :
http://www.jboss.com/index.