Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319256 - Some constants in PersistenceUnitProperties are missing JavaDoc
Summary: Some constants in PersistenceUnitProperties are missing JavaDoc
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 trivial (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard: simple_fix
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 07:30 EDT by Adrian Goerler CLA
Modified: 2022-06-09 10:26 EDT (History)
2 users (show)

See Also:


Attachments
Proposed JavaDoc and Constructor changes to PersistenceUnitProperties (7.42 KB, patch)
2011-02-23 14:29 EST, David Minsky CLA
no flags Details | Diff
Proposed JavaDoc changes to PersistenceUnitProperties (V2) (7.24 KB, patch)
2011-02-24 11:59 EST, David Minsky CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Goerler CLA 2010-07-08 07:30:07 EDT
The following constants in the class PersistenceUnitProperties are missing JavaDoc:

CREATE_ONLY, DROP_AND_CREATE, NONE, APP_LOCATION, CREATE_JDBC_DDL_FILE, DROP_JDBC_DDL_FILE, DEFAULT_APP_LOCATION, DEFAULT_CREATE_JDBC_FILE_NAME, DEFAULT_DROP_JDBC_FILE_NAME, JAVASE_DB_INTERACTION, DDL_SQL_SCRIPT_GENERATION, DDL_DATABASE_GENERATION, DDL_BOTH_GENERATION, DEFAULT_DDL_GENERATION_MODE.

Moreover, the class should have a private (default) constructor to prevent instantiation.
Comment 1 Tom Ware CLA 2010-08-09 13:52:53 EDT
Setting target and priority.  See the following page for details of the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 David Minsky CLA 2011-02-23 14:29:21 EST
Created attachment 189629 [details]
Proposed JavaDoc and Constructor changes to PersistenceUnitProperties
Comment 3 Adrian Goerler CLA 2011-02-24 02:17:18 EST
Looks good to me and will be quite helpful. I have two two minor comments:

APP_LOCATION: "root of the working directory" -> shouldn't it rather be "the working directory"?

For all parameter values CREATE_ONLY, ...:  I think it should rather read

"The parameter value <code>"create-tables"</code>"

or just

"The value <code>"create-tables"</code>"

(The property "eclipselink.ddl-generation" has a parameter, which may have the value "create-tables").
Comment 4 David Minsky CLA 2011-02-24 11:59:19 EST
Created attachment 189718 [details]
Proposed JavaDoc changes to PersistenceUnitProperties (V2)

Updated changes based on community feedback: (v2)

- remove private default constructor, to be consistent with existing classes using this pattern
- reword JavaDoc comments, and add additional consistency between properties and property values
Comment 5 David Minsky CLA 2011-02-25 10:53:54 EST
Changes checked into trunk (2.3) at revision 9032
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:26:57 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink