Would it be acceptable for you to have a class named "AirlineBase" instead of "BaseAirline"? If so, you could define the suffix attribute in your hbm2java config file. For example, from section 19.2.1 of the docs you have the following config file:
Code:
<codegen>
<meta attribute="implements">codegen.test.IAuditable</meta>
<generate renderer="net.sf.hibernate.tool.hbm2java.BasicRenderer"/>
<generate
package="autofinders.only"
suffix="Finder"
renderer="net.sf.hibernate.tool.hbm2java.FinderRenderer"/>
</codegen>
and says:
Quote:
The suffix attribute specifies the suffix for generated files. E.g. here a file named Foo.java would be FooFinder.java instead.
You could change the suffix to "Base" or whatever you want.
Also yes, the sample javaTypeMapper is javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper". You could create your own class though and use that one, you just need to implement the JavaTypeMapper interface. See the hibernate middlegen doc at
http://www.hibernate.org/98.html .
Daniel