@@ -0,0 +1,1867 @@
+/*%0A * Copyright 2016 Gustavo Pacheco.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage co.edu.unicartagena.platf.entity;%0A%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0Aimport javax.xml.bind.annotation.XmlRootElement;%0Aimport javax.xml.bind.annotation.XmlType;%0A%0A/**%0A *%0A * @author Gustavo Pacheco %3Cryctabo@gmail.com%3E%0A * @version 1.0-SNAPSHOT%0A */%0A@Entity%0A@XmlRootElement%0A@XmlType(propOrder = %7B%22id%22, %22code%22, %22name%22%7D)%0Apublic class Faculty implements IEntity %7B%0A    %0A    @Id%0A    @GeneratedValue(strategy = GenerationType.AUTO)%0A    private int id;%0A    %0A    @Column(unique = true, length = 3, nullable = false)%0A    private String code;%0A    %0A    @Column(length = 50, nullable = false)%0A    private String name;%0A%0A    public Faculty() %7B%0A    %7D%0A%0A    public Faculty(String code, String name) %7B%0A        this.code = code;%0A        this.name = name;%0A    %7D%0A%0A    public int getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(int id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public String getCode() %7B%0A        return code;%0A    %7D%0A%0A    public void setCode(String code) %7B%0A        this.code = code;%0A    %7D%0A%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A    %0A%7D%0A

Create faculty entity