More precisely, I want to know, how one can model annotations into the ecore model definition. So that the generated java code would contain them. (For eg: hibernate persistence tags)
标签:
eclipse-emf
相关问题
- How to export Xcore to Ecore?
- How do I create an EAttribute whose data type is n
- How do I install an Eclipse EPP (for example EPP M
- How to use EMF to read XML file?
- Loading same plugin twice with different version i
相关文章
- How do I create an EAttribute whose data type is n
- How do I install an Eclipse EPP (for example EPP M
- How to use EMF to read XML file?
- Java源代码编辑器作为Eclipse视图(Java source code editor as a
- Java源代码编辑器作为Eclipse视图(Java source code editor as a
- GMF显示图示例(GMF display diagram example)
- GMF显示图示例(GMF display diagram example)
- 网格化Acceleo用的Xtext(Meshing Acceleo with Xtext)
I don't think you can to this out of the box. However, you could look into the parameters of the "
.genmodel
" file to see if you can tweak how annotations (EAnnotations
) are being output to the files. The problem with code generation templates is that they are fixed, but maybe through some option in the genmodel you can control how annotations get written to files.