content: package org.vaadin.crudui.demo.entity;
  
  import jakarta.persistence.Entity;
  import jakarta.persistence.GeneratedValue;
  import jakarta.persistence.Id;
  import jakarta.persistence.Table;
  
  @Entity
  @Table(name = "group_")
  public class Group {
  
  	@Id
  	@GeneratedValue
  	private Long id;
  
  	private String name;
  
  	private Boolean admin = false;
  
  	public Group() {
  	}
  
  	public Group(String name) {
  		this.name = name;
  	}
  
  	@Override
  	public boolean equals(Object o) {
  		if (this == o)
  			return true;
  		if (o == null || getClass() != o.getClass())
  			return false;
  
  		Group group = (Group) o;
  
  		return id != null ? id.equals(group.id) : group.id == null;
  	}
  
  	@Override
  	public int hashCode() {
  		return id != null ? id.hashCode() : 0;
  	}
  
  	public Long getId() {
  		return id;
  	}
  
  	public void setId(Long id) {
  		this.id = id;
  	}
  
  	public String getName() {
  		return name;
  	}
  
  	public void setName(String name) {
  		this.name = name;
  	}
  
  	public Boolean getAdmin() {
  		return admin;
  	}
  
  	public void setAdmin(Boolean admin) {
  		this.admin = admin;
  	}
  
  }
  