Skip to content

Commit 8664eae

Browse files
authored
MBS-1424: Add a first-release-date field to recordings (#23)
1 parent 6319985 commit 8664eae

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

brainz-mmd2-jaxb/src/main/java/org/musicbrainz/mmd2/Recording.java

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
33
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
44
// Any modifications to this file will be lost upon recompilation of the source schema.
5-
// Generated on: 2019.01.07 at 09:53:38 PM CST
5+
// Generated on: 2020.10.29 at 10:46:53 AM CDT
66
//
77

88

@@ -44,6 +44,7 @@
4444
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}disambiguation" minOccurs="0"/&gt;
4545
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}video" minOccurs="0"/&gt;
4646
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}artist-credit" minOccurs="0"/&gt;
47+
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}first-release-date" minOccurs="0"/&gt;
4748
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}release-list" minOccurs="0"/&gt;
4849
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}alias-list" minOccurs="0"/&gt;
4950
* &lt;element ref="{http://musicbrainz.org/ns/mmd-2.0#}puid-list" minOccurs="0"/&gt;
@@ -74,6 +75,7 @@
7475
"disambiguation",
7576
"video",
7677
"artistCredit",
78+
"firstReleaseDate",
7779
"releaseList",
7880
"aliasList",
7981
"puidList",
@@ -99,6 +101,8 @@ public class Recording {
99101
protected String video;
100102
@XmlElement(name = "artist-credit")
101103
protected ArtistCredit artistCredit;
104+
@XmlElement(name = "first-release-date")
105+
protected String firstReleaseDate;
102106
@XmlElement(name = "release-list")
103107
protected ReleaseList releaseList;
104108
@XmlElement(name = "alias-list")
@@ -275,6 +279,30 @@ public void setArtistCredit(ArtistCredit value) {
275279
this.artistCredit = value;
276280
}
277281

282+
/**
283+
* Gets the value of the firstReleaseDate property.
284+
*
285+
* @return
286+
* possible object is
287+
* {@link String }
288+
*
289+
*/
290+
public String getFirstReleaseDate() {
291+
return firstReleaseDate;
292+
}
293+
294+
/**
295+
* Sets the value of the firstReleaseDate property.
296+
*
297+
* @param value
298+
* allowed object is
299+
* {@link String }
300+
*
301+
*/
302+
public void setFirstReleaseDate(String value) {
303+
this.firstReleaseDate = value;
304+
}
305+
278306
/**
279307
* Gets the value of the releaseList property.
280308
*

brainz-mmd2-jaxb/src/main/resources/musicbrainz_mmd-2.0.xsd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@
257257
<xs:element minOccurs="0" ref="mmd-2.0:disambiguation"/>
258258
<xs:element minOccurs="0" ref="mmd-2.0:video"/>
259259
<xs:element minOccurs="0" ref="mmd-2.0:artist-credit"/>
260+
<xs:element minOccurs="0" ref="mmd-2.0:first-release-date"/>
260261
<xs:element minOccurs="0" ref="mmd-2.0:release-list"/>
261262
<xs:element minOccurs="0" ref="mmd-2.0:alias-list"/>
262263
<xs:element minOccurs="0" ref="mmd-2.0:puid-list"/>

schema/musicbrainz_mmd-2.0.rng

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,11 @@
571571
<optional>
572572
<ref name="def_artist-credit"/>
573573
</optional>
574-
574+
<optional>
575+
<element name="first-release-date">
576+
<ref name="def_incomplete-date" />
577+
</element>
578+
</optional>
575579

576580
<optional>
577581
<ref name="def_release-list"/>

0 commit comments

Comments
 (0)