Hide IDs in XML
This commit is contained in:
parent
509248fa30
commit
d49b7665f3
@ -5,6 +5,7 @@ import lombok.*;
|
||||
import javax.persistence.*;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Data
|
||||
@ -31,6 +32,7 @@ import java.time.LocalDate;
|
||||
public class Actors {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@XmlTransient
|
||||
private Long id;
|
||||
|
||||
@Column(length = 100, nullable = false)
|
||||
|
@ -3,10 +3,7 @@ package at.technikumwien.movies;
|
||||
import lombok.*;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ -30,6 +27,7 @@ import java.util.List;
|
||||
public class Movies {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@XmlTransient
|
||||
private Long id;
|
||||
|
||||
@Column(length = 100, nullable = false)
|
||||
|
@ -5,6 +5,7 @@ import lombok.*;
|
||||
import javax.persistence.*;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@ -29,6 +30,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||
public class Studios {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@XmlTransient
|
||||
private Long id;
|
||||
|
||||
@Column(length = 100, nullable = false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user