Show IDs in Xml response

Required in client
This commit is contained in:
karl 2019-12-10 15:17:37 +01:00
parent c4ea40899a
commit a6f24dbbc2
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ import java.time.LocalDate;
public class Actor {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@XmlTransient
@XmlAttribute
private Long id;
@Column(length = 100, nullable = false)

View File

@ -27,7 +27,7 @@ import java.util.List;
public class Movie {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@XmlTransient
@XmlAttribute
private Long id;
@Column(length = 100, nullable = false)

View File

@ -30,7 +30,7 @@ import javax.xml.bind.annotation.XmlTransient;
public class Studio {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@XmlTransient
@XmlAttribute
private Long id;
@Column(length = 100, nullable = false)