Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341821 - [Validation] Need validation when defining both id and embedded-id mapping together
Summary: [Validation] Need validation when defining both id and embedded-id mapping to...
Status: CLOSED DUPLICATE of bug 331480
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dali.general-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-04 12:52 EDT by Nan Li CLA
Modified: 2011-04-04 13:36 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 Nan Li CLA 2011-04-04 12:52:50 EDT
Build Identifier: I-3.3.0-20110324075937

Based on the spec., no Id annotation should exist when the EmbeddedId annotation is used; but we don't have a validation for this. There's no complain if a java entity has both Id and EmbeddedId annotations. The validation should also apply when defining both types of attribute mappings for an entity in the mapping files.

Reproducible: Always
Comment 1 Nan Li CLA 2011-04-04 13:36:16 EDT
Just found out the issue described in this bug is already included in the bug 331480 so mark this bug as duplicated.

*** This bug has been marked as a duplicate of bug 331480 ***