# Re-generate IDL files question

**URL:** <https://techcommunity.softwareag.com/t/re-generate-idl-files-question/59423>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [September 1, 2005, 7:52pm UTC](https://techcommunity.softwareag.com/t/re-generate-idl-files-question/59423 "2005-09-01T19:52:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raymond](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@Raymond](https://techcommunity.softwareag.com/u/Raymond)\
**Post date:** [September 1, 2005, 7:52pm UTC](https://techcommunity.softwareag.com/t/re-generate-idl-files-question/59423/1 "2005-09-01T19:52:58Z")

</div>

We are starting a new project which will make extensive use of the Java wrapper and RPC to execute mainframe subprograms from our application server.  
When I generate the IDL, it does some basic character substution (eg # to \_) so that the generated fields meet the Java rules.  
Those names are fairly ugly so we have been editing the IDL file manually to change the names (so #MEMBER-COUNT becomes memberCount instead of \_member\_count )  
The problem is this: if we change the PDA we cannot re-generate the IDL because then all our edits get lost.  
Other than manually editing the IDL each time we change a PDA is there a way to make those name mappings without losing the ability to re-generate the IDL?  
I tried creating an XMM mapping but the workbench ignores the XMM mappings when generating the Java wrapper.

I am using EntireX workbench 7.1.1.6

Thanks

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [September 12, 2005, 9:04pm UTC](https://techcommunity.softwareag.com/t/re-generate-idl-files-question/59423/2 "2005-09-12T21:04:27Z")

</div>

Hello Raymond,

I do not see a possibility to do this automatically at the moment.  
If you are going to change the PDA you need to keep a copy of the IDL file, regenerate the IDL file and then merge the necessary changes.

---

<div class="post-metadata">

**Author:** ![Raymond](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@Raymond](https://techcommunity.softwareag.com/u/Raymond)\
**Post date:** [September 12, 2005, 9:11pm UTC](https://techcommunity.softwareag.com/t/re-generate-idl-files-question/59423/3 "2005-09-12T21:11:26Z")

</div>

Thanks. We are actually going with a workaround.  
Basically we create a Java class which contains the data fields using the correct names. The class also includes all the ‘set/get’ methods allowing us to treat the class like a bean. We also create another wrapper class which we call the DataAccessor. This includes the code to use the Java wrapper and move the generated names to the bean. This isolates our bean class from the data implementation, while still allowing us to re-generate our IDL file at will.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/re-generate-idl-files-question/59423/4 "2021-04-02T14:39:49Z")

</div>


