File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/org/springframework/samples/petclinic/model Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 55 * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
77 *
8- * http://www.apache.org/licenses/LICENSE-2.0
8+ * http://www.apache.org/licenses/LICENSE-2.0
99 *
1010 * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
1919import org .springframework .beans .support .PropertyComparator ;
2020
2121import jakarta .persistence .*;
22+ import jakarta .validation .constraints .NotNull ; // Added this import
2223import java .time .LocalDate ;
2324import java .util .*;
2425
3536public class Pet extends NamedEntity {
3637
3738 @ Column (name = "birth_date" , columnDefinition = "DATE" )
39+ @ NotNull // Added this annotation
3840 private LocalDate birthDate ;
3941
4042 @ ManyToOne (cascade = CascadeType .ALL )
You can’t perform that action at this time.
0 commit comments