Bug 196271 - Add action to generate deployment descriptor from Annotations for Java EE 5 projects
Summary: Add action to generate deployment descriptor from Annotations for Java EE 5 p...
Status: NEW
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Kaloyan Raev CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard: EaseOfUse
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-07-12 04:27 EDT by Tanyu Trifonov CLA
Modified: 2010-11-04 14:18 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 :)