From a6f24dbbc2a5692edafea32d9a7fbc004f5b17ae Mon Sep 17 00:00:00 2001 From: karl Date: Tue, 10 Dec 2019 15:17:37 +0100 Subject: [PATCH] Show IDs in Xml response Required in client --- MoviesCommon/src/main/java/at.technikumwien.movies/Actor.java | 2 +- MoviesCommon/src/main/java/at.technikumwien.movies/Movie.java | 2 +- MoviesCommon/src/main/java/at.technikumwien.movies/Studio.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MoviesCommon/src/main/java/at.technikumwien.movies/Actor.java b/MoviesCommon/src/main/java/at.technikumwien.movies/Actor.java index 9d18939..dc95bf2 100644 --- a/MoviesCommon/src/main/java/at.technikumwien.movies/Actor.java +++ b/MoviesCommon/src/main/java/at.technikumwien.movies/Actor.java @@ -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) diff --git a/MoviesCommon/src/main/java/at.technikumwien.movies/Movie.java b/MoviesCommon/src/main/java/at.technikumwien.movies/Movie.java index 6c97901..8b9679d 100644 --- a/MoviesCommon/src/main/java/at.technikumwien.movies/Movie.java +++ b/MoviesCommon/src/main/java/at.technikumwien.movies/Movie.java @@ -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) diff --git a/MoviesCommon/src/main/java/at.technikumwien.movies/Studio.java b/MoviesCommon/src/main/java/at.technikumwien.movies/Studio.java index d9eed27..6c95b90 100644 --- a/MoviesCommon/src/main/java/at.technikumwien.movies/Studio.java +++ b/MoviesCommon/src/main/java/at.technikumwien.movies/Studio.java @@ -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)