sql-to-jdl icon indicating copy to clipboard operation
sql-to-jdl copied to clipboard

entity fields returned lower-case

Open ayman-erroutabi opened this issue 5 years ago • 3 comments

I'm using mysql from xampp, I added 'lower_case_table_names=2' in my.ini file of mysql, set tbale engine to "MyIsam" and when i run the project it still give me lower case fields

ayman-erroutabi avatar May 09 '20 07:05 ayman-erroutabi

See https://dev.mysql.com/doc/refman/8.0/en/identifier-case-sensitivity.html

Not sure there is anything to do. Names for entities and fields follows java conventions so the way you store your table names do not matter.

Blackdread avatar May 09 '20 09:05 Blackdread

I tried migrating the databse from Windows MySql to another MySql on Ubuntu, I can clearly get Uppercased column names, but unfortunately the fields generated were this way respectively :

  • IDService => idservice
  • typeRecord => TYPE_RECORD

I have no clue how the java conversion works for fields, is there anyway i can tweak this manually on your project, a temporary solution ?

ayman-erroutabi avatar May 09 '20 21:05 ayman-erroutabi

you have the code so yeah, do whatever you need

Blackdread avatar May 10 '20 03:05 Blackdread

Probably should close as won't fix. Windows...

octgsoftware avatar Nov 29 '22 23:11 octgsoftware

Let's close it

Blackdread avatar Nov 30 '22 17:11 Blackdread