Maximium identifier length

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
DarkCamper
Posts: 11
Joined: Wed 18 Mar 2015 17:31

Maximium identifier length

Post by DarkCamper » Sat 17 Dec 2016 22:22

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!

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Maximium identifier length

Post by Shalex » Wed 21 Dec 2016 09:53

Thank you for your report. We will investigate the question and notify you about the result.

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Maximium identifier length

Post by Shalex » Thu 22 Dec 2016 19:46

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?

DarkCamper
Posts: 11
Joined: Wed 18 Mar 2015 17:31

Re: Maximium identifier length

Post by DarkCamper » Thu 05 Jan 2017 11:03

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.

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Maximium identifier length

Post by Shalex » Thu 05 Jan 2017 13:30

Thank you for letting us know.

Post Reply