Bug 196271

Summary: Add action to generate deployment descriptor from Annotations for Java EE 5 projects
Product: [WebTools] WTP Java EE Tools Reporter: Tanyu Trifonov <tanu78>
Component: jst.j2eeAssignee: Kaloyan Raev <kaloyan>
Status: NEW --- QA Contact: Chuck Bridgham <cbridgha>
Severity: enhancement    
Priority: P3 CC: ccc, kaloyan, ordax, rfrost, thebravoman
Version: 2.0Keywords: helpwanted
Target Milestone: Future   
Hardware: All   
OS: All   
Whiteboard: EaseOfUse

Description Tanyu Trifonov CLA 2007-07-12 04:27:25 EDT
Add action to generate deployment descriptor from Annotations for Java EE 5 projects (example: for EJB 3 projects to generate ejb-jar.xml)


Use case:
It's easier for developers to use annotations during the Java EE 5 projects development but annotations are "hard-coded" in the code. The Application Assembler, The EJB Deployer, The System Administrator needs the deployment descriptor. So, when the developer finishes the projects he/she must write the xml deployment descriptor manually.

From my point of view the following possible scenarios must be handled:
1. the xml descriptor does not exist - just generated.
2. the xml descriptor exists. A dialog must appear with possible solutions:
	- the xml properties takes precedence;
	- the annotations takes precedence;
	- manual (something similar to manual resolving of conflicts).
	
I don't know if the opposite is useful - to generate annotations from xml descriptor.
Comment 1 Chuck Bridgham CLA 2008-05-15 14:09:23 EDT
Moving these enhancements to 301 for now
Comment 2 Carl Anderson CLA 2008-07-23 23:58:41 EDT
This is probably something we should wait until 3.1 to do.
Comment 3 kiril mitov CLA 2008-08-14 02:46:39 EDT
Functionality for processing Java EE models is provided with bug 198815. I could enhance the current implementation of the Java EE model providers so that one can get the xml model, the annotation model, and the merge model using IModelProvider.getModelObject(path). 

Depending on the "path" value we can return xml, annotation or merged model. This way it would be easy to generate xml dd from annotation.
Comment 4 kiril mitov CLA 2008-08-14 03:41:39 EDT
This bug looks very similar to bug 236621. I think they are not duplicated,
since bug 236621 suggests also an option in the wizard while this bug suggests
an action for generating deployment descriptor from annotation.

But there is for sure a connection between both bugs. At least the
functionality will be the same.

I am currently not sure about the dependencies between both bugs :)