@@ -0,0 +1,1929 @@
+package br.ueg.biblio.model;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.JoinColumn;%0Aimport javax.persistence.JoinTable;%0Aimport javax.persistence.ManyToMany;%0Aimport javax.validation.constraints.NotNull;%0Aimport javax.validation.constraints.Size;%0A%0A@Entity%0Apublic class Obra extends Titulo %7B%0A%0A    @NotNull(message = %22%C3%89 definir pelo menos um autor para a obra.%22)%0A    @ManyToMany%0A    @JoinTable(name = %22titulo_autor%22,%0A            joinColumns = %7B%0A                @JoinColumn(name = %22titulo_id%22, nullable = false)%7D,%0A            inverseJoinColumns = %7B%0A                @JoinColumn(name = %22autor_id%22, nullable = false)%7D)%0A    private List%3CAutor%3E autores;%0A%0A    @Column(nullable = true, name = %22volume%22)%0A    private int volume;%0A%0A    @Size(max = 20, message = %22O ISBN possui mais de 20 d%C3%ADgitos, isso n%C3%A3o %C3%A9 permitido. Verifique se %C3%A9 um ISBN v%C3%A1lido.%22)%0A    @Column(name = %22isbn%22, length = 20, nullable = true)%0A    private String isbn;%0A%0A    @Size(max = 25, message = %22O n%C2%BA de CDU possui mais de 25 d%C3%ADgitos, isso n%C3%A3o %C3%A9 permitido. Verifque se digitou corretamente.%22)%0A    @Column(name = %22cdu%22, nullable = true, length = 25)%0A    private String cdu;%0A%0A    public Obra() %7B%0A        this.autores = new ArrayList%3C%3E();%0A    %7D%0A%0A    public List%3CAutor%3E getAutores() %7B%0A        return autores;%0A    %7D%0A%0A    public int getVolume() %7B%0A        return volume;%0A    %7D%0A%0A    public void setVolume(int volume) %7B%0A        this.volume = volume;%0A    %7D%0A%0A    public String getIsbn() %7B%0A        return isbn;%0A    %7D%0A%0A    public void setIsbn(String isbn) %7B%0A        this.isbn = isbn;%0A    %7D%0A%0A    public String getCdu() %7B%0A        return cdu;%0A    %7D%0A%0A    public void setCdu(String cdu) %7B%0A        this.cdu = cdu;%0A    %7D%0A%0A    public void adicionarAutor(Autor autor) %7B%0A        this.autores.add(autor);%0A    %7D%0A%0A    public void excluirAutor(Autor autor) %7B%0A        this.autores.remove(autor);%0A    %7D%0A%7D%0A

Create Obra.java