-
1. how to customize dao export code
bcn Apr 20, 2011 10:58 AM (in response to bcn)This seems such a standard thing ... Nobody can give me a hint?
-
2. how to customize dao export code
bcn Apr 22, 2011 4:21 AM (in response to bcn)After a long search I found the trick: I edited dao/daohome.ftl in the plugin jar
eclipse\plugins\org.hibernate.eclipse_3.4.0.v20110215-1252-H31-GA\lib\tools\hibernate-tools.jar
Not very elegant and has to be repeated after each update of jboss tools, but at least it works.
-
3. how to customize dao export code
maxandersen Apr 26, 2011 5:07 AM (in response to bcn)1 of 1 people found this helpfulHi,
The right way is documented at http://docs.jboss.org/tools/3.2.0.GA/en/hibernatetools/html/plugins.html
There is a Custom Template path you can set which can contain your custom template files.
-
4. how to customize dao export code
bcn Apr 26, 2011 7:03 AM (in response to maxandersen)Thanks. One should add that within this directory the structure has to be the same as in the plugin, i.e. there must be a sub-directory dao containing daohome.ftl.
The documentation could be more detailed about this. Also where to find the master templates to start with.
-
5. how to customize dao export code
dgeraskov Apr 26, 2011 7:09 AM (in response to bcn)In hibernate-tools.jar. Look for *.ftl files.
You can find the jar in org.hibernate.eclipse plugin.
-
6. how to customize dao export code
maxandersen Apr 26, 2011 7:27 AM (in response to bcn)Yes agreed the overview documentation could be clearer on this.
There is though a more detailed example of customization at http://docs.jboss.org/tools/3.2.0.GA/en/hibernatetools/html/codegen.html#d0e6329
that outlines the steps.