Bjornn Borg wrote:
Can you tell me more about the dir names and file names? The DAO template must be named daohome.tfl?
dao/daohome.ftl, just like it is named in hibernate-tools.jar
Quote:
What the names of the other directories for other exports? Must be the same as the tool.jar?
just like in hibernate-tools.jar
Quote:
At last, I was thinking to use interfaces in my DAO. Can I generate two files at the same time(interface + dao)?
just add two runs of <hbmtemplate>
Quote:
How does the tool work? Does it executes all .tfl file in a directory? If yes, I think that I should just create a xxxInterface.tfl and put it together with daohome.tlf. Am I right?
no ;)
the tool is controlled by an Exporter class (which you also can override) which normally just looksup a specific .ftl file and then "executes" it with appropriate input.