I am using middlegen for generating hbm and java files
but i want the generated files with proper naming convention.B'cos my data base table are having very short names.
If you look at the code you will see this in the hibernate plugin.
/**
* Gets the DbNameConverter class reference.
*
* @return The DbNameConverter class value
*/
public String getDbNameConverter() {
return System.getProperty("middlegen.DbNameConverter");
}
Hence you should be now able to workout how to plug in a name converter java class.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
Also can we have sychorizing like hibernate sychronizer.
Logged In: NO
If you look at the code you will see this in the hibernate plugin.
/**
* Gets the DbNameConverter class reference.
*
* @return The DbNameConverter class value
*/
public String getDbNameConverter() {
return System.getProperty("middlegen.DbNameConverter");
}
Hence you should be now able to workout how to plug in a name converter java class.