Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366416 - Texo: Generate a unique constraint in the database for unique attributes
Summary: Texo: Generate a unique constraint in the database for unique attributes
Status: RESOLVED FIXED
Alias: None
Product: EMFT
Classification: Modeling
Component: Texo (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-12 09:53 EST by Peter Kullmann CLA
Modified: 2011-12-13 04:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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