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

Bug 341821

Summary: [Validation] Need validation when defining both id and embedded-id mapping together
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: GeneralAssignee: dali.general-inbox <dali.general-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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 ***