Page 1 of 1

Maximium identifier length

Posted: Sat 17 Dec 2016 22:22
by DarkCamper
Hi, I've found a problem when generating the SQL script for a model (NHibernate model, Mysql database).

I've got two entities mapped to tables with long but valid identifiers in Mysql but, when I create a relation between them, the generated FK name exceeds the maximum identifier length (as it's composed of both table names and a number).

Is there a way to make Entity Developer clip the generated FK names to a maximum size or just a property I haven't found yet to change manually the FK name?

Thanks!

Re: Maximium identifier length

Posted: Wed 21 Dec 2016 09:53
by Shalex
Thank you for your report. We will investigate the question and notify you about the result.

Re: Maximium identifier length

Posted: Thu 22 Dec 2016 19:46
by Shalex
We cannot reproduce the case when the FK name generated by Entity Developer exceeds the allowed identifier length. Could you please send us a test model for reproducing?

Re: Maximium identifier length

Posted: Thu 05 Jan 2017 11:03
by DarkCamper
Sorry for not replying before.

It seems it was my fault. I installed by mistake an older version on my laptop, which still generated identifiers that were too large for MySQL.

Thank you and my apologies for not noticing that before.

Re: Maximium identifier length

Posted: Thu 05 Jan 2017 13:30
by Shalex
Thank you for letting us know.