1414public interface AnnotationOptionTestDao {
1515
1616 // Valid include option
17- @ Update (include = {"name" , "location" })
18- int updateWithValidInclude (Department department );
17+ @ Insert (include = {"name" , "location" })
18+ int insertWithValidInclude (Department department );
1919
2020 // Invalid include option
2121 @ Update (include = {"name" , "invalidField" })
@@ -26,8 +26,8 @@ public interface AnnotationOptionTestDao {
2626 int updateWithValidExclude (Department department );
2727
2828 // Invalid exclude option
29- @ Update (exclude = {"salary" , "location" })
30- int updateWithInvalidExclude (Department department );
29+ @ Insert (exclude = {"salary" , "location" })
30+ int insertWithInvalidExclude (Department department );
3131
3232 // Mixed valid and invalid
3333 @ Update (include = {"name" }, exclude = {"bonus" })
@@ -42,8 +42,8 @@ public interface AnnotationOptionTestDao {
4242 int batchUpdateWithInvalidInclude (List <Department > departments );
4343
4444 // BatchUpdate with valid exclude
45- @ BatchUpdate (exclude = {"id" , "managerCount" })
46- int batchUpdateWithValidExclude (List <Department > departments );
45+ @ BatchInsert (exclude = {"id" , "managerCount" })
46+ int batchInsertWithValidExclude (List <Department > departments );
4747
4848 // Non-entity parameter - no validation
4949 @ Update (include = {"name" })
@@ -54,8 +54,8 @@ public interface AnnotationOptionTestDao {
5454 int updateEmbedded (Department department );
5555
5656 // Valid Embedded Property specification
57- @ Update (include = {"embeddableEntity.age" , "embeddableEntity.id" })
58- int updateEmbeddedWithProperties (Department department );
57+ @ Insert (include = {"embeddableEntity.age" , "embeddableEntity.id" })
58+ int insertEmbeddedWithProperties (Department department );
5959
6060 // Valid returning options
6161 @ Update (returning = @ Returning (include = {"embeddableEntity.name" }))
0 commit comments