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

Bug 242463

Summary: Expose "discover annotated classes" as a product preference
Product: [WebTools] Dali JPA Tools Reporter: John Pitman <jpitman>
Component: JPAAssignee: Paul Fullbright <paul.fullbright>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: 2.0   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description John Pitman CLA 2008-07-29 15:34:53 EDT
Build ID: WTP 3.0.1

Steps To Reproduce:
We (IBM) would like to be able set the default value for the "discover annotated classes" project preference as a product preference customization.

More information:
Comment 1 Neil Hauge CLA 2008-11-10 15:22:56 EST
I don't think this is an important item for 2.1 (which is releasing in December).  As a result, deferring to 2.2 (Galileo).  Please let me know if this is not the case.
Comment 2 Neil Hauge CLA 2009-04-06 16:30:43 EDT
Investigate for M7.
Comment 3 Paul Fullbright CLA 2009-04-08 14:07:19 EDT
How should this work?  Currently the preference is based on whether or not the user is (detectably) going to be deploying to an EE vs SE environment.  In an EE environment, regardless of dev time settings (unless deconfigured using the persistence unit setting), the annotated classes *will* be discovered.  In an SE environment, they typically will not.

What is the use case you want to support?
Comment 4 Neil Hauge CLA 2009-04-21 18:27:40 EDT
(In reply to comment #3)
> How should this work?  Currently the preference is based on whether or not the
> user is (detectably) going to be deploying to an EE vs SE environment.  In an
> EE environment, regardless of dev time settings (unless deconfigured using the
> persistence unit setting), the annotated classes *will* be discovered.  In an
> SE environment, they typically will not.
> 
> What is the use case you want to support?
> 

I think they want to "hard-code" the preference so that it is always in discovery mode.
Comment 5 Paul Fullbright CLA 2009-04-22 17:00:53 EDT
The confusing part to me is:
is the desired intent to *override* the user election?
or just to preselect the dialog?

Should the validation for this setting be turned off?  If so, is that also a preference?

Deferring until we have more information ...
Comment 6 Neil Hauge CLA 2011-07-01 16:23:16 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 7 Neil Hauge CLA 2012-09-06 15:06:42 EDT
This is close enough to the other bug to mark as duplicate.

*** This bug has been marked as a duplicate of bug 387586 ***