Menu

#200 can we generate files with our own naming

open
hibernate (22)
5
2008-04-30
2008-04-30
Anonymous
No

Hi,

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.

Please do the needful.

Regards,
Rajinder
rajinderbindra@gmail.com

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Also can we have sychorizing like hibernate sychronizer.

     
  • Nobody/Anonymous

    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.

     

Log in to post a comment.