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)