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 { public class Actor {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
@XmlTransient @XmlAttribute
private Long id; private Long id;
@Column(length = 100, nullable = false) @Column(length = 100, nullable = false)

View File

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

View File

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