1
2
3
4
5 package org.company.thesandbox.domain;
6
7 import java.util.Collections;
8 import java.util.Set;
9 import java.util.HashSet;
10 import org.mod4j.runtime.validation.MinValueValidator;
11 import org.mod4j.runtime.validation.MaxValueValidator;
12 import org.mod4j.runtime.validation.MinLengthValidator;
13 import org.mod4j.runtime.validation.MaxLengthValidator;
14 import org.mod4j.runtime.validation.RegExpValidator;
15
16
17
18
19
20
21
22 @SuppressWarnings("serial")
23 public abstract class ArtistImplBase extends Person implements java.io.Serializable {
24
25
26
27
28 private String title;
29
30
31
32
33 protected ArtistImplBase() {
34 super();
35 }
36
37
38
39
40
41
42
43
44
45
46
47 public ArtistImplBase(String firstName, String lastName, String title) {
48 super(firstName, lastName);
49
50 this.title = title;
51
52 validation.validate();
53 }
54
55
56
57
58
59 public String getTitle() {
60 return this.title;
61 }
62
63
64
65
66
67 public void setTitle(final String title) {
68 this.title = title;
69 validation.validate();
70 }
71
72
73
74
75
76
77
78
79 public void activateValidation(boolean value) {
80
81 this.validation.setActive(value);
82 if (value) {
83 validation.validate();
84 }
85 }
86
87 }