Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311061 - Updatable=false doesnt prevent from update
Summary: Updatable=false doesnt prevent from update
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 12:45 EDT by kadmos CLA
Modified: 2022-06-09 10:31 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kadmos CLA 2010-04-29 12:45:38 EDT
Build Identifier: 

@Enumerated(EnumType.STRING)
@Column(updatable=false)
private ExamType examType;

This doesnt prevent it from changing...THIS IS BAD


Reproducible: Always

Steps to Reproduce:
1.Create an entity as described
2.Persist ,then set manually all the data to a new object with an existing id 
3.Merge
Comment 1 Tom Ware CLA 2010-05-06 13:29:35 EDT
Workaround: Also set Insertable to false.
Comment 2 Gordon Yorke CLA 2010-05-10 08:46:36 EDT
This should already work in the EclipseLink 2.1 stream.
Comment 3 James Sutherland CLA 2010-05-12 14:02:08 EDT
Should be fixed in 2.1.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:31:24 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink