Community
Participate
Working Groups
Created attachment 186251 [details] Screenshot Hi, I am using 64-bit Windows 7 Ultimate, with Sun Java 1.6.0_20 JDK installed. I have installed the latest "Eclipse IDE for Java EE developers" for "Windows 64 Bit" platform, it is Helios. I have installed the latest JPA Diagram Editor from its dedicated Eclipse page: http://wiki.eclipse.org/JPA_Diagram_Editor_Project. Scenario to reproduce: 0. I have created a simple EJB 3.0 project, and added a JPA 1.0 facet to it. 1. I opened the diagram, and created a new entity class 2. I added to this entity two persistent attributes - one of type java.sql.Date, and the other of type java.util.Date. Problem: I got compilation error in my IDE with the following error message: "The import java.util.Date collides with another import statement". You can take a look at the attached screenshot. The problem is that, the diagram inserts import statements for each attribute type, but in this particular case they collide.
Created attachment 187528 [details] Avoid packages import statement collision
Patch committed ...
The fix was submitted in the timeframe of M5, but the JPA Diagram Editor wasn't integrated in PDE build of WTP before the M5 release date, so I'm retargeting this bug to M6.
Verified in Build I-3.3.0-20110414085808 Verified when you use java.util.Date and java.sql.Date for attriutes within an Entity the colliding error does not appear. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0_M6