Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!news.albasani.net!.POSTED!not-for-mail From: Sebastian Newsgroups: comp.lang.java.programmer Subject: Seeking info on JAXB and custom annotations Date: Wed, 19 Dec 2012 00:06:19 +0100 Organization: albasani.net Lines: 15 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net 57Ip14VyjwO8IcHYm+0ATxRzkKQzb7NDwFsKY0A6XAmVgfMqgDPTq4SRML9bah31ZuB/98y+iVAh9lhW0I8eYfbqkmOTwQO6U1rK2E2ldaqHixC8YMJeAp3BVMZLujXD NNTP-Posting-Date: Tue, 18 Dec 2012 23:03:59 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="/6TIl+948yqXCMgKTSY05PyiIRjb48Pc70bM8bGI18Qo4MYL/DGQ5dAbSDz6cvAmnkKtRKX045lccsgGoSCncEQoFzEXqryFyK2M+6ZQblhEPvfbDzkeXzrhgQbVnuin"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 Cancel-Lock: sha1:Mpkc6DGE0vjMLXVxPDndL9sCnAM= Xref: csiph.com comp.lang.java.programmer:20480 Does anyone know if (and how) it is possible to a) generate Java classes with custom annotations from xsd schema, using xjc? (The annotations would be on fields, but placing them on the corresponding getters would be acceptable.) I have googled a bit, and one possibiliy appears to be the annox plugin. b) marshall/unmarshall these classes to XML and back with JAXB, preserving the custom annotations? I have found no helpful information on this part of the problem. By "custom annotations" I mean non-JAXB annotations that would be written by me. -- Sebastian