# Introduction In this project, you will learn how to use MyBatis to retrieve course information from a database and map the results to a custom Java object. You will also learn how to handle inconsistencies between the database table structure and the entity class properties. ## ð Preview ![Unfinished](https://file.labex.io/namespace/718bace8-27a3-4200-a588-dde4041ceeb9/java/project-practical-use-of-resultmap/lab-practical-use-of-resultmap/assets/img_1.png) ![Unfinished](https://file.labex.io/namespace/718bace8-27a3-4200-a588-dde4041ceeb9/java/project-practical-use-of-resultmap/lab-practical-use-of-resultmap/assets/img_2.png) ## ðŊ Tasks In this project, you will learn: - How to modify the properties and methods of an entity class to match the database table structure. - How to configure the mapper interface to define the methods for querying course information. - How to configure the mapper XML file to define the SQL queries and the result mapping. - How to implement test cases to verify the functionality of the mapper. ## ð Achievements After completing this project, you will be able to: - Use MyBatis to interact with a database and retrieve data. - Use `resultMap` to handle inconsistencies between database table structure and entity class properties. - Write test cases to verify the functionality of a MyBatis mapper.
Click the virtual machine below to start practicing