Eclipse JEE version: 3.4
Hibernate version: 3.3.1.GA
Hibernate Tools version: 3.2.4.CR2
I'm using Hibernate Tools Eclipse Plugin to generate DAO's from a database using Hibernate Core (ie not JPA or EJB3 or Annotations, nor Java5). The default generation uses a Home suffix when generating DAO's, I'd like to change it to use a DAO suffix instead.
I've tried changing the FreeMarker template dao/daohome.ftl from adding the suffix Home to DAO. When the tool is run the class generates with the DAO suffix, but the java file still generates with a Home suffix. I end up with a XYZHome.java file with a XYXDAO class.
I've tried subclassing DefaultReverseEngineeringStrategy and overridding the method tableToClassName, but it seems to add the suffix after calling this method.
Any pointers on how to change this would be appreciated.
|