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

Bug 366416

Summary: Texo: Generate a unique constraint in the database for unique attributes
Product: [Modeling] EMFT Reporter: Peter Kullmann <peter.kullmann>
Component: TexoAssignee: Martin Taal <mtaal>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Peter Kullmann CLA 2011-12-12 09:53:30 EST
For model attributes with the unique setting I would like to add a unique constraint in the database. Texo could automatically create this constraint in the orm.xml (or in the JPA annotations). One should be able to override the behaviour in the annotations model. Possibly there could be a setting on the package level - whether to create unique constraints by default or not.

See also http://www.eclipse.org/forums/index.php?t=rview&goto=762701#msg_762701
Comment 1 Martin Taal CLA 2011-12-13 04:10:14 EST
Has been added (for many efeatures), to enable it the GenerateFullDbSchemaNames property on the epackage ORM annotation model must be set to true.

gr. Martin