// Path: share/src/main/java/io/github/pivopil/share/entities/BasicEntity.java
// @MappedSuperclass
// public class BasicEntity extends EntityWithId {
// 
//     private Date created;
// 
//     private Date updated;
// 
//     public Date getCreated() {
//         return created;
//     }
// 
//     public void setCreated(Date created) {
//         this.created = created;
//     }
// 
//     public Date getUpdated() {
//         return updated;
//     }
// 
//     public void setUpdated(Date updated) {
//         this.updated = updated;
//     }
// 
//     @PrePersist
//     protected void onCreate() {
//         this.created = new Date();
//     }
// 
//     @PreUpdate
//     protected void onUpdate() {
//         this.updated = new Date();
//     }
// 
// }


import io.github.pivopil.share.entities.BasicEntity;
import org.hibernate.validator.constraints.NotEmpty;
import javax.persistence.Column;
import javax.persistence.Entity;
package io.github.pivopil.share.entities.impl;



/**
 * Created on 08.01.17.
 */

@Entity
public class Company extends BasicEntity {

    @NotEmpty
    @Column(unique = true, nullable = false)
    private String name;

    @NotEmpty
    @Column(unique = true, nullable = false)
    private String roleAlias;

    private String description;

    public String getName() {
        return name;
    }

// Path: share/src/main/java/io/github/pivopil/share/entities/BasicEntity.java
// @MappedSuperclass
// public class BasicEntity extends EntityWithId {
// 
//     private Date created;
// 
//     private Date updated;
// 
//     public Date getCreated() {
//         return created;
//     }
// 
//     public void setCreated(Date created) {
//         this.created = created;
//     }
// 
//     public Date getUpdated() {
//         return updated;
//     }
// 
//     public void setUpdated(Date updated) {
//         this.updated = updated;
//     }
// 
//     @PrePersist
//     protected void onCreate() {
//         this.created = new Date();
//     }
// 
//     @PreUpdate
//     protected void onUpdate() {
//         this.updated = new Date();
//     }
// 
// }


// Path: share/src/main/java/io/github/pivopil/share/entities/impl/Company.java
import io.github.pivopil.share.entities.BasicEntity;
import org.hibernate.validator.constraints.NotEmpty;
import javax.persistence.Column;
import javax.persistence.Entity;

package io.github.pivopil.share.entities.impl;



/**
 * Created on 08.01.17.
 */

@Entity
public class Company extends BasicEntity {

    @NotEmpty
    @Column(unique = true, nullable = false)
    private String name;

    @NotEmpty
    @Column(unique = true, nullable = false)
    private String roleAlias;

    private String description;

    public String getName() {
        return name;
    }

    public void setName(String name) {