Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

middlegen, dash/hyphen, underscore sign

 
Stan Sokolov
Ranch Hand
Posts: 120
Hibernate IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Middlegen removes _ and - signs when it generates mapping for a DB. Could it be configured. What if we do not need this type of names correction? Could it use the same names of tables and fields how DB administrator has defined. Otherwise developers some time are confused when writing quieries.
 
Stan Sokolov
Ranch Hand
Posts: 120
Hibernate IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found a solution.
Class to convert the names should be implemented as follow

and in ANT task you have to set the class name that is used
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic