Community
Participate
Working Groups
I would be cool if Teneo could look at the documentation tags from the XSD/ECore and put those comments in the output hbm file. I'll submit a fix that does this.
Created attachment 73870 [details] patch to support commenting the hbm file cheers
Hi Jason, Thanks, do you have an xsd with a documentation example? Btw, I changed your code here and there and moved it to a separate method: /** Add a comment element, if the eModelElement has documentation */ protected void addCommentElement(EModelElement eModelElement, Element hbmElement) { final String commentData = EcoreUtil.getDocumentation(eModelElement); if (commentData != null) { final Element comment = hbmElement.addElement("comment"); comment.addText(commentData.replace('\'', ' ').replace('"', ' ')); } } I got rid of the npe by changing the code in other locations. I saw that also in case there was no comment you still placed a 'no comment present' comment. To me it feels that this less usefull for most people.
Sorry forget my request for the documentation example, I found the xsd's you sent me earlier. gr. Martin
This has been committed to cvs.
Solved in build I200707181657 Thanks for your contribution. gr. Martin
Move to verified as per bug 206558.