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

Bug 311061

Summary: Updatable=false doesnt prevent from update
Product: z_Archived Reporter: kadmos
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: gordon.yorke, jamesssss, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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