From 8664eaef84cbdbf92b739cbd34250f6933729976 Mon Sep 17 00:00:00 2001 From: Michael Wiencek Date: Wed, 11 Nov 2020 13:36:06 -0600 Subject: [PATCH] MBS-1424: Add a first-release-date field to recordings (#23) --- .../java/org/musicbrainz/mmd2/Recording.java | 30 ++++++++++++++++++- .../main/resources/musicbrainz_mmd-2.0.xsd | 1 + schema/musicbrainz_mmd-2.0.rng | 6 +++- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/brainz-mmd2-jaxb/src/main/java/org/musicbrainz/mmd2/Recording.java b/brainz-mmd2-jaxb/src/main/java/org/musicbrainz/mmd2/Recording.java index d7fb810..bdf9133 100644 --- a/brainz-mmd2-jaxb/src/main/java/org/musicbrainz/mmd2/Recording.java +++ b/brainz-mmd2-jaxb/src/main/java/org/musicbrainz/mmd2/Recording.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 // See https://javaee.github.io/jaxb-v2/ // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2019.01.07 at 09:53:38 PM CST +// Generated on: 2020.10.29 at 10:46:53 AM CDT // @@ -44,6 +44,7 @@ * <element ref="{http://musicbrainz.org/ns/mmd-2.0#}disambiguation" minOccurs="0"/> * <element ref="{http://musicbrainz.org/ns/mmd-2.0#}video" minOccurs="0"/> * <element ref="{http://musicbrainz.org/ns/mmd-2.0#}artist-credit" minOccurs="0"/> + * <element ref="{http://musicbrainz.org/ns/mmd-2.0#}first-release-date" minOccurs="0"/> * <element ref="{http://musicbrainz.org/ns/mmd-2.0#}release-list" minOccurs="0"/> * <element ref="{http://musicbrainz.org/ns/mmd-2.0#}alias-list" minOccurs="0"/> * <element ref="{http://musicbrainz.org/ns/mmd-2.0#}puid-list" minOccurs="0"/> @@ -74,6 +75,7 @@ "disambiguation", "video", "artistCredit", + "firstReleaseDate", "releaseList", "aliasList", "puidList", @@ -99,6 +101,8 @@ public class Recording { protected String video; @XmlElement(name = "artist-credit") protected ArtistCredit artistCredit; + @XmlElement(name = "first-release-date") + protected String firstReleaseDate; @XmlElement(name = "release-list") protected ReleaseList releaseList; @XmlElement(name = "alias-list") @@ -275,6 +279,30 @@ public void setArtistCredit(ArtistCredit value) { this.artistCredit = value; } + /** + * Gets the value of the firstReleaseDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFirstReleaseDate() { + return firstReleaseDate; + } + + /** + * Sets the value of the firstReleaseDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFirstReleaseDate(String value) { + this.firstReleaseDate = value; + } + /** * Gets the value of the releaseList property. * diff --git a/brainz-mmd2-jaxb/src/main/resources/musicbrainz_mmd-2.0.xsd b/brainz-mmd2-jaxb/src/main/resources/musicbrainz_mmd-2.0.xsd index b80d79a..677221c 100644 --- a/brainz-mmd2-jaxb/src/main/resources/musicbrainz_mmd-2.0.xsd +++ b/brainz-mmd2-jaxb/src/main/resources/musicbrainz_mmd-2.0.xsd @@ -257,6 +257,7 @@ + diff --git a/schema/musicbrainz_mmd-2.0.rng b/schema/musicbrainz_mmd-2.0.rng index 8707e5d..b35bcc2 100644 --- a/schema/musicbrainz_mmd-2.0.rng +++ b/schema/musicbrainz_mmd-2.0.rng @@ -571,7 +571,11 @@ - + + + + +