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

Bug 317479

Summary: Cannot persist new objects through HibernateResource when model class has an Id attribute
Product: [Modeling] EMF Reporter: Martin Schmied <mschmied>
Component: TeneoAssignee: Martin Taal <mtaal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Martin Schmied CLA 2010-06-21 12:48:01 EDT
Code in BaseEFeatureAnnotator.addColumnConstraints sets lowerBound of all attributes mapped as @Id columns to 1 making them required. Pre-save validation triggered by Teneo then fails for all new Objects (complaints about null id).

This bug might have been introduced by the fix to #277544. Issue originally reported to EMF forum - http://www.eclipse.org/forums/index.php?t=msg&th=170396&start=0&
Comment 1 Martin Taal CLA 2010-08-18 09:05:26 EDT
Fix committed to cvs, the lowerBound is not set to 1 anymore in case of an id.

gr. Martin
Comment 2 Martin Taal CLA 2010-08-18 10:20:47 EDT
Fix is available in build of today on interim update site:
http://download.eclipse.org/modeling/emf/teneo/updates/1.2.0/interim/