Bug 459111 - @CacheIndex.updateable and @Column.updatable provide redundant information
Summary: @CacheIndex.updateable and @Column.updatable provide redundant information
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-04 06:46 EST by Sascha Baumeister CLA
Modified: 2022-06-09 10:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Baumeister CLA 2015-02-04 06:46:37 EST
@CacheIndex can be annotated on entities and their fields/accessors, therefore I agree that @CacheIndex.updateable is required in general. However, it currently defaults to true in any case, causing the need to specify fully redundant information if annotated on a field/accessor whenever an @Column annotation is present as well.

Requiring the configuration or annotation of redundant information is bad practice because it is prone to contradictions, like @CacheIndex.updateable=true but @Column.updatable=false. Therefore, I believe the default should be changed in case @CacheIndex is annotated on a field/accessor, and an @Column annotation is present as well on said field/accessor: under these circumstances, @CacheIndex.updatable should default to @Column.updatable, which itself defaults to true.
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:05:33 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink