APAR status
Closed as program error.
Error description
UML to EJB 3.0 transformation generates 'EntityManager entityManager;' in the code. Generation of EntityManager entityManager; The transform is generating the same code by default whenever there is an attribute of type EntityManager (irrespective of the attribute name) in the UML model. For example: The generation of code below for attribute 'em' (Type set as EntityManager) /** * ?!-- begin-UML-doc --? * ?!-- end-UML-doc --? * @generated 'UML-to-EJB 3.0 (com.ibm.xtools.transform.uml2.ejb3.java.internal.UML2EJB3Transf orm)' */ @PersistenceContext private EntityManager entityManager; EntityManager em; The fix will generate the EntityManager with proper attribute name as defined in the UML model. So with the fix the issue of generation of extra 'EntityManager entityManager;' will be solved and 'EntityManager em;' will be correctly preserved.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** UML to EJB 3.0 transformation generates "EntityManager entityManager;" in the code. Generation of EntityManager entityManager; The transform is generating the same code by default whenever there is an attribute of type EntityManager (irrespective of the attribute name) in the UML model.
Problem conclusion
UML to EJB 3.0 transformation generates "EntityManager entityManager;" in the code. Generation of EntityManager entityManager; The transform was generating the same code by default whenever there is an attribute of type EntityManager (irrespective of the attribute name) in the UML model. Fixed to generate the code based on property name.
Temporary fix
Comments
APAR Information
APAR number
PM39352
Reported component name
SW ARCHITECT WI
Reported component ID
5724I7001
Reported release
750
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-05-16
Closed date
2011-06-17
Last modified date
2011-06-17
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
SW ARCHITECT WI
Fixed component ID
5724I7001
Applicable component levels
R750 PSN
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYKBQ","label":"Rational Software Architect Designer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"750","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"750","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]
Document Information
Modified date:
17 June 2011