Skip to content

Instantly share code, notes, and snippets.

View samaddico's full-sized avatar
🏠
Working from home

Samuel Addico samaddico

🏠
Working from home
View GitHub Profile
@samaddico
samaddico / customBindingFile.xjb
Created November 18, 2016 19:32 — forked from pulkitsinghal/customBindingFile.xjb
How to get Java POJOs, generated from schema files, to implement custom interfaces via maven plugins
<?xml version="1.0"?>
<jxb:bindings version="1.0"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
jxb:extensionBindingPrefixes="xjc">
<jxb:bindings schemaLocation="../schema/yourSchemaFile.xsd">
<jxb:bindings node="//xs:complexType[@name='SomeElementNameFromYourSchemaFile']">