Getter랑 변수랑 둘다 XmlAttribute로 인식해서 중복
https://codeday.me/ko/qa/20190428/403414.html
java – 같은 이름을 가지는 Jaxb 객체 - 코드 로그
동일한 이름의 2 개의 다른 jaxb 객체를 비 정렬 화하는 것이 가능하게되는 것처럼 보입니다. Bar 클래스가 있습니다 … public abstract Bar { private @XmlElement String val; } .. 두 가지 구현 (생성자 등 생략) : @XmlRootElement(name="bar") public class BarA extends Bar { } @XmlRootElement(name="bar") public class Bar
codeday.me
https://codeday.me/ko/qa/20190516/557990.html
@XmlAttribute/@XmlValue는 XML에서 텍스트에 매핑되는 Java 유형을 참조해야 합니다.
http://blog.bdoughan.com/2010/09/jaxb-collection-properties.html
JAXB & Collection Properties
In this post will examine the different options JAXB offers for representing collections in XML. We will look at the following annotations:...
blog.bdoughan.com
http://blog.bdoughan.com/2011/06/using-jaxbs-xmlaccessortype-to.html
Using JAXB's @XmlAccessorType to Configure Field or Property Access
JAXB offers a lot of flexibility when interacting with your object model. One area is configuring the use of fields or properties to acces...
blog.bdoughan.com
http://blog.bdoughan.com/2011/06/using-jaxbs-xmlaccessortype-to.html
'Java' 카테고리의 다른 글
6. Enums and Annotations - Effective Java 3th (0) | 2019.08.26 |
---|---|
10. Exceptions ( 예외 처리 ) - Effective Java 3th (0) | 2019.08.12 |
디자인패턴8-전략 패턴/스트래티지 패턴(Strategy Pattern) (0) | 2019.05.30 |
Java8 람다(Lambda) 제대로 쓰기 (0) | 2019.04.25 |
디자인패턴7 - Proxy pattern(프록시 패턴) (0) | 2019.04.24 |