Correcting Object Relation Mapping XML

已回答

I created OR Mapping from persistence window as per https://www.jetbrains.com/help/idea/generate-persistence-mapping-import-dialogs.html. It generated entities and single mapping.xml file. When generating the mapping, I had to add some relationships as they do not exist as foreign key constraint in database. After everything is done, I realized that I made a small mistake. Now that I want to correct that, I cannot find any way to load the generated mapping.xml file to see existing mappings in order to correct them. It seems that I need to start from scratch. Is there any way out?

0

Hello,

What path did you set for "Generate Single Mapping XML"? File should be located under that path.

0
Avatar
Permanently deleted user

@yaroslav, I can see the file. But there is no way to load that file in "generate entities from database" dialog; subsequently, I need to hand edit the file which I don't want to do.

0

Thanks for clarification! Currently there is no such option.

Please follow your feature request on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-194828

0
Avatar
Permanently deleted user

Wow! And I spent an entire day looking for ways to do this :).

I am sure I am not first person who needs this. What do people do? Generate entities once and keep on hand editing them for life time of the project?

0

请先登录再写评论。