You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Arseni Bulatski (JIRA)" <ji...@apache.org> on 2019/06/26 13:54:00 UTC
[jira] [Commented] (CAY-2402) cdbimport: escape db names that is
not valid Java identifiers
[ https://issues.apache.org/jira/browse/CAY-2402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16873348#comment-16873348 ]
Arseni Bulatski commented on CAY-2402:
--------------------------------------
To prevent incorrect generation need to use custom naming strategy in dbImport. Cgen expects that's data is valid.
So the solution is contribution custom ObjectNameGenerator.
> cdbimport: escape db names that is not valid Java identifiers
> -------------------------------------------------------------
>
> Key: CAY-2402
> URL: https://issues.apache.org/jira/browse/CAY-2402
> Project: Cayenne
> Issue Type: Bug
> Components: dbimport, Non-GUI Tools
> Affects Versions: 4.0.B2, 4.1.M1
> Reporter: Nikita Timofeev
> Assignee: Arseni Bulatski
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.2.M1
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Database names starting with numbers are converted as is in Object attribute names.
> I.e. name like {{"123name"}} will end as {{<obj-attribute name="123name"/>}}.
> It can be fixed by prefixing with {{"_"}} such names.
> Also should review other special characters that can be in db names.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)