Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317479 - Cannot persist new objects through HibernateResource when model class has an Id attribute
Summary: Cannot persist new objects through HibernateResource when model class has an ...
Status: RESOLVED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Teneo (show other bugs)
Version: 1.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-21 12:48 EDT by Martin Schmied CLA
Modified: 2010-08-18 10:20 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 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/