package nl.tudelft.ewi.git.models;

import java.util.Collection;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.validator.constraints.NotEmpty;

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

	@NotEmpty
	private Collection<IdentifiableModel> members;
	
}

@@ -59,16 +59,62 @@
 ction;%0A%0A
+import javax.validation.constraints.Pattern;%0A%0A
 import l
@@ -125,16 +125,16 @@
 k.Data;%0A
-
 import l
@@ -286,16 +286,17 @@
 nfig.%0A *
+ 
 %0A * @aut
@@ -407,16 +407,90 @@
 odel %7B%0A%0A
+%09@NotEmpty%0A%09@Pattern(regexp = %22%5E%5C%5C@%5Ba-zA-Z0-9%5D+$%22)%0A%09private String name;%0A%0A
 %09@NotEmp
@@ -540,12 +540,11 @@
 embers;%0A
-%09
 %0A%7D%0A

Fix group name notation.