Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337722 - schema gen for XmlAccessType.FIELD does not include annotated properties
Summary: schema gen for XmlAccessType.FIELD does not include annotated properties
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-21 09:26 EST by Karen Butzke CLA
Modified: 2022-06-09 10:29 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2011-02-21 09:26:44 EST
Using the following class I generated a schema using MOXy and the properties 'APublicProperty' and 'APrivateProperty' were not generated into the schema even though they are annotated properties. 

package test.fieldaccess;

@XmlType
@XmlAccessorType(XmlAccessType.FIELD)
public class A {

	private int aPrivateField;

	public String aPublicField;

	@XmlAttribute
	public String getAPublicProperty() {
		return null;
	}
	public void setAPublicProperty(String name) {
		
	}
	
	@XmlAttribute
	private String getAPrivateProperty() {
		return null;
	}
	private void setAPrivateProperty(String name) {
		
	}
}
Comment 1 Matt MacIvor CLA 2011-03-21 10:31:46 EDT
Fix for this bug has been submitted as part of the fix for bug 337721

That fix was reviewed by Blaise Doughan.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:29:58 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink