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