Community
Participate
Working Groups
The "no support for multiple persistence units" warning message is currently "Multiple persistence units defined - tooling only supports 1 persistence unit per project". "tooling only supports" has to go :-) I propose something closer to "Multiple persistence units defined - only first persistence unit will be validated". This better explains the limitation and provides the developer with notice that they'll have to manually check persistence units after the first one. Even the notion of "first" isn't great but I'm not sure how else to say it succinctly.
Need to figure out an appropriate message for the next release, since we weren't able to address this issue in the 2.0 RC's. We need to convey to the user that only one PU is going to be recognized for Dali functionality. Any Entities defined in additional PU's will now be treated like they are in the 1 recognized PU for the purposes of defaults, validation, etc. These unrecognized Entities will be marked with an Error, informing the user that they are not listed in the recognized PU. So, perhaps the message could simply say, "Multiple persistence units defined - only the first persistence unit will be recognized". The first PU in the persistence.xml is what we will recognize. Perhaps there is a better word than "recognized", but that is my suggestion for the moment.
Changed to "Multiple persistence units defined - only the first persistence unit will be recognized".
verified in current code