Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323672 - Canonical Model Generator @Transient field generation error
Summary: Canonical Model Generator @Transient field generation error
Status: RESOLVED DUPLICATE of bug 330395
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Guy Pelletier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-25 22:15 EDT by Son KwonNam CLA
Modified: 2022-06-09 10:06 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Son KwonNam CLA 2010-08-25 22:15:27 EDT
Build Identifier: 20100617-1415

When there is @Transient field and the field is annotated with non-JPA annotation(like @Resource, @Autowired, etc), Canonical Model generator throws the following exception.

java.lang.RuntimeException: Exception [EclipseLink-7153] (Eclipse Persistence Services - 2.1.0.v20100614-r7608): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Mapping annotations cannot be applied to fields or properties that have a @Transient specified. [field tran] is in violation of this restriction.

But @Resource, @Autowired, etc are not "Mapping annotation".


Reproducible: Always
Comment 1 Tom Ware CLA 2010-09-02 09:34:36 EDT
Setting target and priority.  See the following page for details of what this means:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 Guy Pelletier CLA 2010-11-25 11:01:25 EST
This has been corrected with the fix for bug 330395. That fix has been submitted to the 2.2 stream and will be checked into the 2.1.3 stream once it is opened.

*** This bug has been marked as a duplicate of bug 330395 ***
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:06:31 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink