{"id":467460,"date":"2025-07-18T21:35:38","date_gmt":"2025-07-18T21:35:38","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=467460"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=467460","title":{"rendered":"<span>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 Java-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 Jmix AI Assistant, \u0447\u0430\u0441\u0442\u044c 2<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/articles\/891166\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 <\/a>\u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 Jmix AI Assistant \u043d\u0430\u0447\u0430\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u043d\u043b\u0430\u0439\u043d \u043a\u0443\u0440\u0441\u043e\u0432.<\/p>\n<p>\u0411\u044b\u043b\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f (use cases), \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 UML-\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PlantUML \u0434\u043b\u044f \u044d\u0442\u0438\u0445 use cases, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0435\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 JMIX. \u0414\u0430\u043b\u0435\u0435 \u0432\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0440\u0430\u0437\u0431\u0438\u0442\u044b \u043f\u043e \u043f\u0430\u043a\u0435\u0442\u0430\u043c.<\/p>\n<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c  \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043a\u043e\u0434\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Jmix AI Assistant, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f REST API \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0438 REST \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f CRUD-\u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/p>\n<\/li>\n<\/ul>\n<h2>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/h2>\n<p>\u041f\u0438\u0448\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u043b\u044f Jmix AI Assistant:  <\/p>\n<blockquote>\n<p>\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0439 \u043a\u043b\u0430\u0441\u0441, \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0439 \u0434\u043e\u043c\u0435\u043d\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439 2-3 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432, \u0434\u043e\u0431\u0430\u0432\u044c 2 \u043a\u0443\u0440\u0441\u0430 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432,<\/p>\n<p>2 \u0442\u0435\u0441\u0442\u0430 \u0441 2-3 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u0437\u0430\u043f\u0438\u0448\u0438 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u043a\u0443\u0440\u0441.<\/p>\n<p>\u0412\u044b\u0432\u0435\u0434\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0432\u0441\u0435\u0445 \u043a\u0443\u0440\u0441\u0430\u0445.<\/p>\n<p>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 \u0432\u044b\u0432\u043e\u0434\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 (\u0438\u043c\u044f, \u0444\u0430\u043c\u0438\u043b\u0438\u044f, email), \u0441\u043f\u0438\u0441\u043e\u043a \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0435\u0441\u0442\u043e\u0432.<\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0434.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 ru.rsa.mcc.eduplatform.<\/p>\n<\/blockquote>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 Jmix AI Assistant: <\/p>\n<pre><code class=\"java\">package ru.rsa.mcc.eduplatform;  import ru.rsa.mcc.eduplatform.model.user.Student; import ru.rsa.mcc.eduplatform.model.course.Course; import ru.rsa.mcc.eduplatform.model.course.Module; import ru.rsa.mcc.eduplatform.model.content.Material; import ru.rsa.mcc.eduplatform.model.assessment.Test; import ru.rsa.mcc.eduplatform.model.assessment.Question;  import java.time.LocalDate; import java.util.ArrayList; import java.util.List;  public class TestDataGenerator {      public static void main(String[] args) {         \/\/ Create students         Student student1 = new Student();         student1.setUsername(\"john_doe\");         student1.setPassword(\"password123\");         student1.setEmail(\"john.doe@example.com\");         student1.setStudentId(\"S001\");         student1.setEnrollmentDate(LocalDate.now());          Student student2 = new Student();         student2.setUsername(\"jane_smith\");         student2.setPassword(\"password123\");         student2.setEmail(\"jane.smith@example.com\");         student2.setStudentId(\"S002\");         student2.setEnrollmentDate(LocalDate.now());          Student student3 = new Student();         student3.setUsername(\"alice_jones\");         student3.setPassword(\"password123\");         student3.setEmail(\"alice.jones@example.com\");         student3.setStudentId(\"S003\");         student3.setEnrollmentDate(LocalDate.now());          \/\/ Create courses         Course course1 = new Course();         course1.setTitle(\"Introduction to Programming\");         course1.setDescription(\"Learn the basics of programming.\");          Course course2 = new Course();         course2.setTitle(\"Advanced Java\");         course2.setDescription(\"Deep dive into Java programming.\");          \/\/ Create materials         Material material1 = new Material();         material1.setTitle(\"Java Basics\");         material1.setType(\"Video\");         material1.setData(\"URL to Java Basics Video\");         material1.setDuration(60);          Material material2 = new Material();         material2.setTitle(\"OOP Concepts\");         material2.setType(\"Document\");         material2.setData(\"URL to OOP Concepts Document\");         material2.setDuration(45);          \/\/ Create tests         Test test1 = new Test();         test1.setTitle(\"Java Basics Test\");         test1.setDate(LocalDate.now());         test1.setDuration(30);          Question question1 = new Question();         question1.setText(\"What is Java?\");         question1.setOptions(List.of(\"Programming Language\", \"Coffee\", \"Animal\"));         question1.setCorrectAnswer(\"Programming Language\");          Question question2 = new Question();         question2.setText(\"What is OOP?\");         question2.setOptions(List.of(\"Object-Oriented Programming\", \"Open Office Protocol\", \"Online Order Processing\"));         question2.setCorrectAnswer(\"Object-Oriented Programming\");          test1.setQuestions(List.of(question1, question2));          Test test2 = new Test();         test2.setTitle(\"Advanced Java Test\");         test2.setDate(LocalDate.now());         test2.setDuration(45);          Question question3 = new Question();         question3.setText(\"What is polymorphism?\");         question3.setOptions(List.of(\"Many forms\", \"Single form\", \"No form\"));         question3.setCorrectAnswer(\"Many forms\");          test2.setQuestions(List.of(question3));          \/\/ Assign students to courses         List&lt;Student&gt; studentsCourse1 = new ArrayList&lt;&gt;();         studentsCourse1.add(student1);         studentsCourse1.add(student2);          List&lt;Student&gt; studentsCourse2 = new ArrayList&lt;&gt;();         studentsCourse2.add(student3);          \/\/ Assign materials and tests to modules         Module module1 = new Module();         module1.setTitle(\"Module 1\");         module1.setDescription(\"Basic Module\");         module1.setMaterials(List.of(material1, material2));         module1.setTests(List.of(test1));          Module module2 = new Module();         module2.setTitle(\"Module 2\");         module2.setDescription(\"Advanced Module\");         module2.setMaterials(List.of(material2));         module2.setTests(List.of(test2));          \/\/ Assign modules to courses         course1.setModules(List.of(module1));         course2.setModules(List.of(module2));          \/\/ Print course information         printCourseInfo(course1, studentsCourse1);         printCourseInfo(course2, studentsCourse2);     }      private static void printCourseInfo(Course course, List&lt;Student&gt; students) {         System.out.println(\"Course: \" + course.getTitle());         System.out.println(\"Description: \" + course.getDescription());         System.out.println(\"Students Enrolled:\");         for (Student student : students) {             System.out.println(\" - \" + student.getUsername() + \" (\" + student.getEmail() + \")\");         }         System.out.println(\"Modules:\");         for (Module module : course.getModules()) {             System.out.println(\"  Module: \" + module.getTitle());             System.out.println(\"  Materials:\");             for (Material material : module.getMaterials()) {                 System.out.println(\"   - \" + material.getTitle() + \" (\" + material.getType() + \")\");             }             System.out.println(\"  Tests:\");             for (Test test : module.getTests()) {                 System.out.println(\"   - \" + test.getTitle());             }         }         System.out.println();     } }<\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432, \u043a\u0443\u0440\u0441\u044b, \u043c\u043e\u0434\u0443\u043b\u0438, \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0438 \u0442\u0435\u0441\u0442\u044b, \u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u0443\u0440\u0441\u0435, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432, \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0438 \u0442\u0435\u0441\u0442\u044b.<\/p>\n<h2>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f REST API \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0438 REST \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/h2>\n<p>\u041f\u0438\u0448\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 Jmix AI Assistant:  <\/p>\n<blockquote>\n<p>\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c REST-\u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b  <\/p>\n<\/blockquote>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 Jmix AI Assistant: <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 Jmix \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0430\u0448\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 REST API, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c REST \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043e \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u0442\u043e\u0447\u0435\u043a REST \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0447\u0430\u0449\u0438\u043c\u0438\u0441\u044f, \u043a\u0443\u0440\u0441\u0430\u043c\u0438 \u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438.<\/p>\n<h4>\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/h4>\n<ol>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f<strong>:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0443 \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>DataManager<\/code>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 REST<strong>:<\/strong><\/p>\n<ul>\n<li>\n<p>\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u0442\u043e\u0447\u043a\u0430\u043c REST \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f REST-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u0430 <\/h3>\n<h4>StudentService.java<\/h4>\n<pre><code class=\"java\">package ru.rsa.mcc.eduplatform.service;  import io.jmix.core.DataManager; import io.jmix.core.SaveContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import ru.rsa.mcc.eduplatform.model.user.Student;  import java.util.List;  @Service public class StudentService {      @Autowired     private DataManager dataManager;      public List&lt;Student&gt; getAllStudents() {         return dataManager.load(Student.class).all().list();     }      public Student saveStudent(Student student) {         return dataManager.save(student);     }      public void deleteStudent(Student student) {         dataManager.remove(student);     } }<\/code><\/pre>\n<h4>CourseService.java<\/h4>\n<pre><code class=\"java\">package ru.rsa.mcc.eduplatform.service;  import io.jmix.core.DataManager; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import ru.rsa.mcc.eduplatform.model.course.Course;  import java.util.List;  @Service public class CourseService {      @Autowired     private DataManager dataManager;      public List&lt;Course&gt; getAllCourses() {         return dataManager.load(Course.class).all().list();     }      public Course saveCourse(Course course) {         return dataManager.save(course);     }      public void deleteCourse(Course course) {         dataManager.remove(course);     } }<\/code><\/pre>\n<h3>REST \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b<\/h3>\n<h4>StudentController.java<\/h4>\n<pre><code class=\"java\">package ru.rsa.mcc.eduplatform.controller;  import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import ru.rsa.mcc.eduplatform.model.user.Student; import ru.rsa.mcc.eduplatform.service.StudentService;  import java.util.List;  @RestController @RequestMapping(\"\/api\/students\") public class StudentController {      @Autowired     private StudentService studentService;      @GetMapping     public List&lt;Student&gt; getAllStudents() {         return studentService.getAllStudents();     }      @PostMapping     public Student createStudent(@RequestBody Student student) {         return studentService.saveStudent(student);     }      @DeleteMapping(\"\/{id}\")     public void deleteStudent(@PathVariable String id) {         Student student = studentService.getAllStudents().stream()                 .filter(s -&gt; s.getId().toString().equals(id))                 .findFirst()                 .orElseThrow(() -&gt; new IllegalArgumentException(\"Student not found\"));         studentService.deleteStudent(student);     } }<\/code><\/pre>\n<h4>CourseController.java<\/h4>\n<pre><code class=\"java\">package ru.rsa.mcc.eduplatform.controller;  import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import ru.rsa.mcc.eduplatform.model.course.Course; import ru.rsa.mcc.eduplatform.service.CourseService;  import java.util.List;  @RestController @RequestMapping(\"\/api\/courses\") public class CourseController {      @Autowired     private CourseService courseService;      @GetMapping     public List&lt;Course&gt; getAllCourses() {         return courseService.getAllCourses();     }      @PostMapping     public Course createCourse(@RequestBody Course course) {         return courseService.saveCourse(course);     }      @DeleteMapping(\"\/{id}\")     public void deleteCourse(@PathVariable String id) {         Course course = courseService.getAllCourses().stream()                 .filter(c -&gt; c.getId().toString().equals(id))                 .findFirst()                 .orElseThrow(() -&gt; new IllegalArgumentException(\"Course not found\"));         courseService.deleteCourse(course);     } }<\/code><\/pre>\n<h4>\u041e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435:<\/h4>\n<ul>\n<li>\n<p><strong>\u0421\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c<\/strong>: \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0443 \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e<code>DataManager<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b REST<\/strong>: \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 CRUD \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 Student \u0438 Course.<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438:<\/strong><\/p>\n<ul>\n<li>\n<p><code>GET \/api\/students<\/code>: \u0418\u0437\u0432\u043b\u0435\u0447\u044c \u0432\u0441\u0435\u0445 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><code>POST \/api\/students<\/code>: \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><code>DELETE \/api\/students\/{id}<\/code>: \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0430 \u043f\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443.<\/p>\n<\/li>\n<li>\n<p><code>GET \/api\/courses<\/code>: \u0418\u0437\u0432\u043b\u0435\u0447\u044c \u0432\u0441\u0435 \u043a\u0443\u0440\u0441\u044b.<\/p>\n<\/li>\n<li>\n<p><code>POST \/api\/courses<\/code>: \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043a\u0443\u0440\u0441.<\/p>\n<\/li>\n<li>\n<p><code>DELETE \/api\/courses\/{id}<\/code>: \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u0443\u0440\u0441 \u043f\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 REST API \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0447\u0430\u0449\u0438\u043c\u0438\u0441\u044f \u0438 \u043a\u0443\u0440\u0441\u0430\u043c\u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 Jmix. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0435\u0433\u043e, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u0438 \u0441\u043b\u0443\u0436\u0431\u044b \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<h3>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f CRUD-\u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0434\u043b\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439  <\/h3>\n<p>\u041f\u0438\u0448\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 Jmix AI Assistant:  <\/p>\n<blockquote>\n<p>\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c CRUD-\u044d\u043a\u0440\u0430\u043d\u044b \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439  <\/p>\n<\/blockquote>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 Jmix AI Assistant: <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c CRUD-\u044d\u043a\u0440\u0430\u043d\u044b \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 Jmix, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Jmix Studio, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0430\u0441\u0442\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043e \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u044d\u0442\u0438\u0445 \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Jmix Studio.<\/p>\n<h4>\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/h4>\n<ol>\n<li>\n<p><strong>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435<\/strong> <strong>Jmix Studio:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 Jmix \u0432 IntelliJ IDEA \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 Jmix Studio.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043a \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0412 \u043e\u043a\u043d\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 Jmix \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c CRUD-\u044d\u043a\u0440\u0430\u043d\u044b.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 <\/strong>(<strong>View):<\/strong><\/p>\n<ul>\n<li>\n<p>\u0429\u0435\u043b\u043a\u043d\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043c\u044b\u0448\u0438 \u043d\u0430 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435\u00a0<code>New<\/code>\u00a0-&gt;\u00a0<code>View<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c \u0438 \u043d\u0430\u0436\u0430\u0442\u044c\u00a0<code>Views<\/code>\u043d\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u043f\u0430\u043d\u0435\u043b\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d:<\/strong><\/p>\n<ul>\n<li>\n<p>\u041c\u0430\u0441\u0442\u0435\u0440 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432. \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 CRUD.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 View:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 View.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043f\u0443\u043d\u043a\u0442\u0430\u0445 \u043c\u0435\u043d\u044e <code>Entity list view fetch plan<\/code> \u0438 <code>Entity detail view fetch<\/code> \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0445. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u043f\u043b\u0430\u043d\u044b \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u041c\u0430\u0441\u0442\u0435\u0440\u0430:<\/strong><\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 <code>Finish<\/code>, \u0447\u0442\u043e\u0431\u044b \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c XML-\u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p>\u0424\u0430\u0439\u043b \u043f\u0430\u043a\u0435\u0442\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d, \u0438 \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043d\u043e\u0432\u044b\u0439 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e, \u0435\u0441\u043b\u0438 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 list view.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0430\u0448\u0438\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430<\/h4>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043b\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 <code>Student<\/code>:<\/p>\n<h3>student-list-view.xml<\/h3>\n<pre><code class=\"xml\">&lt;view xmlns=\"http:\/\/jmix.io\/schema\/flowui\/view\"&gt;     &lt;data&gt;         &lt;collection id=\"studentsDc\"                     class=\"ru.rsa.mcc.eduplatform.model.user.Student\"                     fetchPlan=\"_base\"&gt;             &lt;loader id=\"studentsDl\"&gt;                 &lt;query&gt;                     &lt;![CDATA[select e from Student e]]&gt;                 &lt;\/query&gt;             &lt;\/loader&gt;         &lt;\/collection&gt;     &lt;\/data&gt;     &lt;facets&gt;         &lt;dataLoadCoordinator auto=\"true\"\/&gt;     &lt;\/facets&gt;     &lt;layout&gt;         &lt;hbox id=\"buttonsPanel\" classNames=\"buttons-panel\"&gt;             &lt;button id=\"createBtn\" action=\"studentsDataGrid.create\"\/&gt;             &lt;button id=\"editBtn\" action=\"studentsDataGrid.edit\"\/&gt;             &lt;button id=\"removeBtn\" action=\"studentsDataGrid.remove\"\/&gt;         &lt;\/hbox&gt;         &lt;dataGrid id=\"studentsDataGrid\"                   width=\"100%\"                   minHeight=\"20em\"                   dataContainer=\"studentsDc\"&gt;             &lt;actions&gt;                 &lt;action id=\"create\" type=\"list_create\"\/&gt;                 &lt;action id=\"edit\" type=\"list_edit\"\/&gt;                 &lt;action id=\"remove\" type=\"list_remove\"\/&gt;             &lt;\/actions&gt;             &lt;columns&gt;                 &lt;column property=\"username\"\/&gt;                 &lt;column property=\"email\"\/&gt;                 &lt;column property=\"studentId\"\/&gt;                 &lt;column property=\"enrollmentDate\"\/&gt;             &lt;\/columns&gt;         &lt;\/dataGrid&gt;     &lt;\/layout&gt; &lt;\/view&gt; <\/code><\/pre>\n<h3>StudentListView.java<\/h3>\n<pre><code class=\"java\">package ru.rsa.mcc.eduplatform.view.student;  import io.jmix.flowui.view.*; import ru.rsa.mcc.eduplatform.model.user.Student;  @ViewController(\"student-list-view\") @ViewDescriptor(\"student-list-view.xml\") @Route(\"students\") public class StudentListView extends StandardListView&lt;Student&gt; { } <\/code><\/pre>\n<h4>\u041e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435:<\/h4>\n<ul>\n<li>\n<p><strong>\u041c\u0430\u0441\u0442\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439<\/strong>: \u041c\u0430\u0441\u0442\u0435\u0440 Jmix Studio \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u043e\u0432 CRUD, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/strong>: \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434<\/strong>: \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434: \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 list view \u0434\u043b\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 <code>Student<\/code>, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438 \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e, \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044e \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c CRUD-\u044d\u043a\u0440\u0430\u043d\u044b \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u0430\u0448\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 Jmix.<\/p>\n<h4>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438:<\/h4>\n<ul>\n<li>\n<p><a href=\"https:\/\/docs.jmix.io\/jmix\/studio\/index.html\" rel=\"noopener noreferrer nofollow\">Jmix Studio Documentation<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/docs.jmix.io\/jmix\/studio\/view-wizard.html\" rel=\"noopener noreferrer nofollow\">View Creation Wizard<\/a><\/p>\n<\/li>\n<\/ul>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043a\u043e\u0434\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Jmix AI Assistant, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f REST API \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0438 REST \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f CRUD-\u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u043e\u0434, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 Jmix AI Assistant, \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0439. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0447\u0442\u043e\u0431\u044b Jmix AI Assistant \u0431\u044b\u043b \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0432 Jmix Studio. <\/p>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/www.jmix.ru\/blog\/jmix-ai-assistant\/\" rel=\"noopener noreferrer nofollow\">Jmix AI Assistant \u2014 \u0432\u0430\u0448 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a \u0432 \u043e\u0441\u0432\u043e\u0435\u043d\u0438\u0438 Jmix<\/a>  \u043e\u0437\u0432\u0443\u0447\u0435\u043d\u044b \u043f\u043b\u0430\u043d\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432:<\/p>\n<blockquote>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430 \u0432 Jmix Studio. \u041e\u043d \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438, \u044d\u043a\u0440\u0430\u043d\u044b \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b: \u00ab\u0421\u0434\u0435\u043b\u0430\u0439 \u044d\u043a\u0440\u0430\u043d\u044b \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438\u00bb, \u00ab\u0414\u043e\u0431\u0430\u0432\u044c \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u0438 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438\u00bb. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0432\u0432\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434.\u00a0<\/p>\n<\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/908736\/\"> https:\/\/habr.com\/ru\/articles\/908736\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 <a href=\"https:\/\/habr.com\/ru\/articles\/891166\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 <\/a>\u0441\u0442\u0430\u0442\u044c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 Jmix AI Assistant \u043d\u0430\u0447\u0430\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u043d\u043b\u0430\u0439\u043d \u043a\u0443\u0440\u0441\u043e\u0432.<\/p>\n<p>\u0411\u044b\u043b\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f (use cases), \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 UML-\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PlantUML \u0434\u043b\u044f \u044d\u0442\u0438\u0445 use cases, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0435\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 JMIX. \u0414\u0430\u043b\u0435\u0435 \u0432\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0440\u0430\u0437\u0431\u0438\u0442\u044b \u043f\u043e \u043f\u0430\u043a\u0435\u0442\u0430\u043c.<\/p>\n<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c  \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043a\u043e\u0434\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Jmix AI Assistant, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f REST API \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0438 REST \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f CRUD-\u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/p>\n<\/li>\n<\/ul>\n<h2>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/h2>\n<p>\u041f\u0438\u0448\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u043b\u044f Jmix AI Assistant:  <\/p>\n<blockquote>\n<p>\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0439 \u043a\u043b\u0430\u0441\u0441, \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0439 \u0434\u043e\u043c\u0435\u043d\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439 2-3 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432, \u0434\u043e\u0431\u0430\u0432\u044c 2 \u043a\u0443\u0440\u0441\u0430 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432,<\/p>\n<p>2 \u0442\u0435\u0441\u0442\u0430 \u0441 2-3 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u0437\u0430\u043f\u0438\u0448\u0438 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u043a\u0443\u0440\u0441.<\/p>\n<p>\u0412\u044b\u0432\u0435\u0434\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0432\u0441\u0435\u0445 \u043a\u0443\u0440\u0441\u0430\u0445.<\/p>\n<p>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 \u0432\u044b\u0432\u043e\u0434\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432 (\u0438\u043c\u044f, \u0444\u0430\u043c\u0438\u043b\u0438\u044f, email), \u0441\u043f\u0438\u0441\u043e\u043a \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0435\u0441\u0442\u043e\u0432.<\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0434.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 ru.rsa.mcc.eduplatform.<\/p>\n<\/blockquote>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 Jmix AI Assistant: <\/p>\n<pre><code class=\"java\">package ru.rsa.mcc.eduplatform;  import ru.rsa.mcc.eduplatform.model.user.Student; import ru.rsa.mcc.eduplatform.model.course.Course; import ru.rsa.mcc.eduplatform.model.course.Module; import ru.rsa.mcc.eduplatform.model.content.Material; import ru.rsa.mcc.eduplatform.model.assessment.Test; import ru.rsa.mcc.eduplatform.model.assessment.Question;  import java.time.LocalDate; import java.util.ArrayList; import java.util.List;  public class TestDataGenerator {      public static void main(String[] args) {         \/\/ Create students         Student student1 = new Student();         student1.setUsername(\"john_doe\");         student1.setPassword(\"password123\");         student1.setEmail(\"john.doe@example.com\");         student1.setStudentId(\"S001\");         student1.setEnrollmentDate(LocalDate.now());          Student student2 = new Student();         student2.setUsername(\"jane_smith\");         student2.setPassword(\"password123\");         student2.setEmail(\"jane.smith@example.com\");         student2.setStudentId(\"S002\");         student2.setEnrollmentDate(LocalDate.now());          Student student3 = new Student();         student3.setUsername(\"alice_jones\");         student3.setPassword(\"password123\");         student3.setEmail(\"alice.jones@example.com\");         student3.setStudentId(\"S003\");         student3.setEnrollmentDate(LocalDate.now());          \/\/ Create courses         Course course1 = new Course();         course1.setTitle(\"Introduction to Programming\");         course1.setDescription(\"Learn the basics of programming.\");          Course course2 = new Course();         course2.setTitle(\"Advanced Java\");         course2.setDescription(\"Deep dive into Java programming.\");          \/\/ Create materials         Material material1 = new Material();         material1.setTitle(\"Java Basics\");         material1.setType(\"Video\");         material1.setData(\"URL to Java Basics Video\");         material1.setDuration(60);          Material material2 = new Material();         material2.setTitle(\"OOP Concepts\");         material2.setType(\"Document\");         material2.setData(\"URL to OOP Concepts Document\");         material2.setDuration(45);          \/\/ Create tests         Test test1 = new Test();         test1.setTitle(\"Java Basics Test\");         test1.setDate(LocalDate.now());         test1.setDuration(30);          Question question1 = new Question();         question1.setText(\"What is Java?\");         question1.setOptions(List.of(\"Programming Language\", \"Coffee\", \"Animal\"));         question1.setCorrectAnswer(\"Programming Language\");          Question question2 = new Question();         question2.setText(\"What is OOP?\");         question2.setOptions(List.of(\"Object-Oriented Programming\", \"Open Office Protocol\", \"Online Order Processing\"));         question2.setCorrectAnswer(\"Object-Oriented Programming\");          test1.setQuestions(List.of(question1, question2));          Test test2 = new Test();         test2.setTitle(\"Advanced Java Test\");         test2.setDate(LocalDate.now());         test2.setDuration(45);          Question question3 = new Question();         question3.setText(\"What is polymorphism?\");         question3.setOptions(List.of(\"Many forms\", \"Single form\", \"No form\"));         question3.setCorrectAnswer(\"Many forms\");          test2.setQuestions(List.of(question3));          \/\/ Assign students to courses         List&lt;Student&gt; studentsCourse1 = new ArrayList&lt;&gt;();         studentsCourse1.add(student1);         studentsCourse1.add(student2);          List&lt;Student&gt; studentsCourse2 = new ArrayList&lt;&gt;();         studentsCourse2.add(student3);          \/\/ Assign materials and tests to modules         Module module1 = new Module();         module1.setTitle(\"Module 1\");         module1.setDescription(\"Basic Module\");         module1.setMaterials(List.of(material1, material2));         module1.setTests(List.of(test1));          Module module2 = new Module();         module2.setTitle(\"Module 2\");         module2.setDescription(\"Advanced Module\");         module2.setMaterials(List.of(material2));         module2.setTests(List.of(test2));          \/\/ Assign modules to courses         course1.setModules(List.of(module1));         course2.setModules(List.of(module2));          \/\/ Print course information         printCourseInfo(course1, studentsCourse1);         printCourseInfo(course2, studentsCourse2);     }      private static void printCourseInfo(Course course, List&lt;Student&gt; students) {         System.out.println(\"Course: \" + course.getTitle());         System.out.println(\"Description: \" + course.getDescription());         System.out.println(\"Students Enrolled:\");         for (Student student : students) {             System.out.println(\" - \" + student.getUsername() + \" (\" + student.getEmail() + \")\");         }         System.out.println(\"Modules:\");         for (Module module : course.getModules()) {             System.out.println(\"  Module: \" + module.getTitle());             System.out.println(\"  Materials:\");             for (Material material : module.getMaterials()) {                 System.out.println(\"   - \" + material.getTitle() + \" (\" + material.getType() + \")\");             }             System.out.println(\"  Tests:\");             for (Test test : module.getTests()) {                 System.out.println(\"   - \" + test.getTitle());             }         }         System.out.println();     } }<\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432, \u043a\u0443\u0440\u0441\u044b, \u043c\u043e\u0434\u0443\u043b\u0438, \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0438 \u0442\u0435\u0441\u0442\u044b, \u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u0443\u0440\u0441\u0435, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432, \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0438 \u0442\u0435\u0441\u0442\u044b.<\/p>\n<h2>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f REST API \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0438 REST \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/h2>\n<p>\u041f\u0438\u0448\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 Jmix AI Assistant:  <\/p>\n<blockquote>\n<p>\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c REST-\u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b  <\/p>\n<\/blockquote>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 Jmix AI Assistant: <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 Jmix \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0430\u0448\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 REST API, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c REST \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043e \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u0442\u043e\u0447\u0435\u043a REST \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0447\u0430\u0449\u0438\u043c\u0438\u0441\u044f, \u043a\u0443\u0440\u0441\u0430\u043c\u0438 \u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438.<\/p>\n<h4>\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/h4>\n<ol>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f<strong>:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0443 \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>DataManager<\/code>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 REST<strong>:<\/strong><\/p>\n<ul>\n<li>\n<p>\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u0442\u043e\u0447\u043a\u0430\u043c REST \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f REST-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u0430 <\/h3>\n<h4>StudentService.java<\/h4>\n<pre><code class=\"java\">package ru.rsa.mcc.eduplatform.service;  import io.jmix.core.DataManager; import io.jmix.core.SaveContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import ru.rsa.mcc.eduplatform.model.user.Student;  import java.util.List;  @Service public class StudentService {      @Autowired     private DataManager dataManager;      public List&lt;Student&gt; getAllStudents() {         return dataManager.load(Student.class).all().list();     }      public Student saveStudent(Student student) {         return dataManager.save(student);     }      public void deleteStudent(Student student) {         dataManager.remove(student);     } }<\/code><\/pre>\n<h4>CourseService.java<\/h4>\n<pre><code class=\"java\">package ru.rsa.mcc.eduplatform.service;  import io.jmix.core.DataManager; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import ru.rsa.mcc.eduplatform.model.course.Course;  import java.util.List;  @Service public class CourseService {      @Autowired     private DataManager dataManager;      public List&lt;Course&gt; getAllCourses() {         return dataManager.load(Course.class).all().list();     }      public Course saveCourse(Course course) {         return dataManager.save(course);     }      public void deleteCourse(Course course) {         dataManager.remove(course);     } }<\/code><\/pre>\n<h3>REST \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b<\/h3>\n<h4>StudentController.java<\/h4>\n<pre><code class=\"java\">package ru.rsa.mcc.eduplatform.controller;  import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import ru.rsa.mcc.eduplatform.model.user.Student; import ru.rsa.mcc.eduplatform.service.StudentService;  import java.util.List;  @RestController @RequestMapping(\"\/api\/students\") public class StudentController {      @Autowired     private StudentService studentService;      @GetMapping     public List&lt;Student&gt; getAllStudents() {         return studentService.getAllStudents();     }      @PostMapping     public Student createStudent(@RequestBody Student student) {         return studentService.saveStudent(student);     }      @DeleteMapping(\"\/{id}\")     public void deleteStudent(@PathVariable String id) {         Student student = studentService.getAllStudents().stream()                 .filter(s -&gt; s.getId().toString().equals(id))                 .findFirst()                 .orElseThrow(() -&gt; new<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-467460","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/467460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=467460"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/467460\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=467460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=467460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}