Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 224742

Summary: Adding Java Persistence facet can result in a workspace connection profile being used by default
Product: [WebTools] Dali JPA Tools Reporter: Jack Fong <jackfong>
Component: GeneralAssignee: Neil Hauge <neil.hauge>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david_williams, karenfbutzke, neil.hauge
Version: 2.0   
Target Milestone: 2.0 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jack Fong CLA 2008-03-28 17:53:48 EDT
Build ID: wtp-sdk-I-I20080321174820-20080321174820

Steps To Reproduce:
1. Create a connection profile to an existing db from the Data Source Explorer view
2. Create a EJB 3.0 project in a new 5.0 EAR
3. Open Properties on the EJB project
4. Select Project Facets
5. Select Modify Project
6. Check the Java Persistence facet
7. Select Finish
8. Open Properties on the EJB project and select JPA

RESULT:  
The connection field was set by default to the first connection profile that appears in the
pulldown.  No connection should be applied by default without the user's knowledge.

More information:
Comment 1 Neil Hauge CLA 2008-03-31 09:31:16 EDT
This is related to bug 191720.  We should provide <None> as an option, and that will be the default.  We may want to add a Workspace preference for the Default Connection for Dali.
Comment 2 Karen Butzke CLA 2008-04-22 14:23:14 EDT
This bug is fixed now because the underlying bug 191720 was fixed