package nl.tudelft.ewi.git.models;

import javax.validation.constraints.Pattern;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * This model represents a simplified view of a group or user in the Gitolite config.
 * 
 * @author michael
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class IdentifiableModel extends BaseModel {

	@NotEmpty
	@Pattern(regexp = "^\\@[a-zA-Z0-9]+$")
	private String name;

}

@@ -430,16 +430,17 @@
  = %22%5E%5C%5C@
+?
 %5Ba-zA-Z0

Fix group name notation.